Commit 300a5b32 authored by Luke Plant's avatar Luke Plant
Browse files

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
parent 1c9a506d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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>