Permalink
Browse files

Updated example login template to be best-practice and use the url ta…

…g from 'future'

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14778 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 1c9a506 commit 300a5b32e651e2fae3bb0e8106389c8992aa2d8c @spookylukey spookylukey committed Dec 2, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 docs/topics/auth.txt
View
3 docs/topics/auth.txt
@@ -840,14 +840,15 @@ The login_required decorator
.. code-block:: html+django
{% extends "base.html" %}
+ {% load url from future %}
{% block content %}
{% if form.errors %}
<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>

0 comments on commit 300a5b3

Please sign in to comment.