Initial commit

This commit is contained in:
Claude Paroz 2018-05-26 16:01:04 +02:00
commit aa48b6411f
17 changed files with 322 additions and 0 deletions

16
templates/index.html Normal file
View file

@ -0,0 +1,16 @@
{% extends 'base.html' %}
{% block content %}
<h1>Recettes</h1>
<form method="POST">{% csrf_token %}
{{ form.as_p }}
<button>Rechercher</button>
</form>
<ul>
{% for recette in recettes %}
<li><a href="{{ recette.get_absolute_url }}">{{ recette.nom }}</a></li>
{% endfor %}
</ul>
{% endblock %}