diff options
| author | Tom Christie | 2012-08-25 22:12:23 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-08-25 22:12:23 +0100 | 
| commit | eeed7f7ccabd796540332ae902653bd399eff3e5 (patch) | |
| tree | 0be57bf7008594ee0a56a478d15db8f00a31f3b2 /djangorestframework/templates | |
| parent | 1c28562397f168dc5e71fe1ccd61a8d7253b41e8 (diff) | |
| download | django-rest-framework-eeed7f7ccabd796540332ae902653bd399eff3e5.tar.bz2 | |
Update url tag
Diffstat (limited to 'djangorestframework/templates')
| -rw-r--r-- | djangorestframework/templates/djangorestframework/base.html | 5 | ||||
| -rw-r--r-- | djangorestframework/templates/djangorestframework/login.html | 3 | 
2 files changed, 5 insertions, 3 deletions
diff --git a/djangorestframework/templates/djangorestframework/base.html b/djangorestframework/templates/djangorestframework/base.html index f177f883..a4988d1d 100644 --- a/djangorestframework/templates/djangorestframework/base.html +++ b/djangorestframework/templates/djangorestframework/base.html @@ -1,3 +1,4 @@ +{% load url from future %}  <?xml version="1.0" encoding="UTF-8"?>  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> @@ -23,10 +24,10 @@  		  {% block userlinks %}  			  {% if user.is_active %}  			  	Welcome, {{ user }}. -			  	<a href='{% url djangorestframework:logout %}?next={{ request.path }}'>Log out</a> +			  	<a href='{% url 'djangorestframework:logout' %}?next={{ request.path }}'>Log out</a>  			  {% else %}  			    Anonymous -			    <a href='{% url djangorestframework:login %}?next={{ request.path }}'>Log in</a> +			    <a href='{% url 'djangorestframework:login' %}?next={{ request.path }}'>Log in</a>  			  {% endif %}  		  {% endblock %}  		</div> diff --git a/djangorestframework/templates/djangorestframework/login.html b/djangorestframework/templates/djangorestframework/login.html index 248744df..fd82561f 100644 --- a/djangorestframework/templates/djangorestframework/login.html +++ b/djangorestframework/templates/djangorestframework/login.html @@ -1,3 +1,4 @@ +{% load url from future %}  {% load static %}  <html> @@ -17,7 +18,7 @@              <div id="content" class="colM">                  <div id="content-main"> -                    <form method="post" action="{% url djangorestframework:login %}" id="login-form"> +                    <form method="post" action="{% url 'djangorestframework:login' %}" id="login-form">                          {% csrf_token %}                          <div class="form-row">                              <label for="id_username">Username:</label> {{ form.username }}  | 
