Ticket #12249: 12249_docs_patch.diff
File 12249_docs_patch.diff, 1.1 KB (added by , 15 years ago) |
---|
-
docs/topics/auth.txt
786 786 Here's a sample :file:`registration/login.html` template you can use as a 787 787 starting point. It assumes you have a :file:`base.html` template that 788 788 defines a ``content`` block: 789 790 .. versionadded:: 1.2 791 792 Note that the ``{% csrf_token %}`` in the form below is now required for 793 compatibility with CSRF protection. See the :ref:`UPGRADE INSTRUCTIONS <ref-csrf-upgrading-notes>` 794 for more information. 789 795 790 796 .. code-block:: html 791 797 … … 797 803 <p>Your username and password didn't match. Please try again.</p> 798 804 {% endif %} 799 805 800 <form method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %} 806 <form method="post" action="{% url django.contrib.auth.views.login %}"> 807 {% csrf_token %} 801 808 <table> 802 809 <tr> 803 810 <td>{{ form.username.label_tag }}</td>