Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add {% load url from future %} to sampleapp templates

This fixes the usage of the url templatetag for Django 1.5.
  • Loading branch information...
commit a02eaa91520e30c735e0bafb6e48326de8465b12 1 parent 7ce48df
@bikeshedder bikeshedder authored
View
3  cms/test_utils/project/sampleapp/templates/sampleapp/app.html
@@ -1,2 +1,3 @@
+{% load url from future %}
{{ app }}
-{% url namespaced_app_ns:current-app %}
+{% url 'namespaced_app_ns:current-app' %}
View
7 cms/test_utils/project/sampleapp/templates/sampleapp/extra.html
@@ -1,10 +1,11 @@
{% extends "base.html" %}
+{% load url from future %}
{% load cms_tags %}
{% block content %}
<h2>Sample application page - on page {% page_attribute page_title %}</h2>
<h3>{{ message }}</h3>
{{ block.super }}
- {% url extra_first %}
- {% url extra_second %}
-{% endblock content %}
+ {% url 'extra_first' %}
+ {% url 'extra_second' %}
+{% endblock content %}
View
2  cms/test_utils/project/sampleapp/templates/sampleapp/home.html
@@ -24,4 +24,4 @@
</ul>
<h4>Sample image - appmedia works?</h4>
<img src="{{ STATIC_URL }}sampleapp/img/gift.jpg" alt="gift">
-{% endblock content %}
+{% endblock content %}
Please sign in to comment.
Something went wrong with that request. Please try again.