updarte url templatetag for django 1.5
authorymh <ymh.work@gmail.com>
Thu, 28 Feb 2013 10:41:11 +0100
changeset 100 71b8c0bf5882
parent 99 c91c186c38e8
child 101 f8d837d7ffbc
updarte url templatetag for django 1.5
src/ldtplatform/templates/admin/base_site.html
src/ldtplatform/templates/registration/login.html
--- a/src/ldtplatform/templates/admin/base_site.html	Thu Feb 28 10:40:05 2013 +0100
+++ b/src/ldtplatform/templates/admin/base_site.html	Thu Feb 28 10:41:11 2013 +0100
@@ -16,6 +16,6 @@
         }
     </style>
     
-    <a href="{% url admin:index %}" class="adminlink">Admin home</a>  
-    <a href="{% url root-view %}" class="adminlink">Website home</a>
+    <a href="{% url 'admin:index' %}" class="adminlink">Admin home</a>  
+    <a href="{% url 'root-view' %}" class="adminlink">Website home</a>
 {% endblock %}
\ No newline at end of file
--- a/src/ldtplatform/templates/registration/login.html	Thu Feb 28 10:40:05 2013 +0100
+++ b/src/ldtplatform/templates/registration/login.html	Thu Feb 28 10:41:11 2013 +0100
@@ -25,7 +25,7 @@
             {{form.as_ul}}
             </ul>
             <ul>
-                <li><a href="{% url django.contrib.auth.views.password_reset  %}" >{% trans "Forget password?" %}</a></li>
+                <li><a href="{% url 'django.contrib.auth.views.password_reset'  %}" >{% trans "Forget password?" %}</a></li>
             </ul>
             <div id="submitcontent-buttons-login" class="span-24 last">
                 <button class="button"type="submit" value="login">{% trans "login" %}</button>