diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2010-12-02 14:27:03 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2010-12-02 14:27:03 +0000 |
| commit | 300a5b32e651e2fae3bb0e8106389c8992aa2d8c (patch) | |
| tree | 32e85f9e72265eeeafc82468c2235a244674bbb4 /docs | |
| parent | 1c9a506d21b508f208b2bcd5410ecd4b27f62560 (diff) | |
Updated example login template to be best-practice and use the url tag from 'future'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14778 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index 748fb89419..d49fbf6ffc 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -840,6 +840,7 @@ The login_required decorator .. code-block:: html+django {% extends "base.html" %} + {% load url from future %} {% block content %} @@ -847,7 +848,7 @@ The login_required decorator <p>Your username and password didn't match. Please try again.</p> {% endif %} - <form method="post" action="{% url django.contrib.auth.views.login %}"> + <form method="post" action="{% url 'django.contrib.auth.views.login' %}"> {% csrf_token %} <table> <tr> |
