Adds basic view and template files

This commit is contained in:
Mouse Reeve
2021-01-30 21:33:41 -08:00
parent af65509527
commit 0815b36ec9
6 changed files with 88 additions and 3 deletions

View File

@ -0,0 +1,7 @@
{% extends 'layout.html' %}
{% block content %}
<h1>{{ list.name }}</h1>
{{ list }}
{% endblock %}

View File

@ -0,0 +1,16 @@
{% extends 'layout.html' %}
{% block content %}
<h1>lists</h1>
{% if request.user.is_authenticated %}
<h2>Your lists</h2>
{% for list in request.user.list_set.all %}
{{ list }}
{% endfor %}
{% endif %}
{% for list in lists %}
{{ list }}
{% endfor %}
{% endblock %}