Debian Codegraph @

testproject/templates/home.html

raw
1 <body>
2 <h2>Form example</h2>
3 <form action="." method="post">
4 {% csrf_token %}
5
6 {{ form.errors }}
7 {{ form.as_p }}
8
9 <div>
10 <input type="submit" value="Submit" />
11 </div>
12 </form>
13 <a href="{% url 'model_form' %}">Model form example(Note: you need to migrate database to use it)</a>
14 </body>