Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 300a5b32e651e2fae3bb0e8106389c8992aa2d8c 1 parent 1c9a506
@spookylukey spookylukey authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  docs/topics/auth.txt
View
3  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>
Please sign in to comment.
Something went wrong with that request. Please try again.