From 300a5b32e651e2fae3bb0e8106389c8992aa2d8c Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Thu, 2 Dec 2010 14:27:03 +0000 Subject: [PATCH] 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 --- docs/topics/auth.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index 748fb894198..d49fbf6ffc5 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

Your username and password didn't match. Please try again.

{% endif %} -
+ {% csrf_token %}