Skip to content
Browse files

Fixed "url" bug to add support to Django 1.5

  • Loading branch information...
1 parent 4861df9 commit 6680af8b95e6329ff8315d3ba5b65f87a1a44698 @facconi committed
Showing with 4 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 peavy/templates/peavy/base.html
  3. +1 −1 peavy/templates/peavy/dashboard.html
View
1 .gitignore
@@ -4,3 +4,4 @@
*.egg-info
dist
build
+.idea
View
4 peavy/templates/peavy/base.html
@@ -11,9 +11,9 @@
<header>
<nav id="nav1">
<ul>
- {% url home as home_url %}
+ {% url 'home' as home_url %}
<li><a class="home" href="{{ home_url|default:"/" }}">home</a></li>
- <li><a class="dashboard" href="{% url peavy:dashboard %}">dashboard</a></li>
+ <li><a class="dashboard" href="{% url 'peavy:dashboard' %}">dashboard</a></li>
{% block extra_nav %}{% endblock extra_nav %}
</ul>
</nav>
View
2 peavy/templates/peavy/dashboard.html
@@ -83,7 +83,7 @@
</div>
{% if record.debug_page and user.is_superuser %}
<div class="debug">
- <a target="_blank" href="{% url peavy:debug_page record.pk %}">View debug page.</a>
+ <a target="_blank" href="{% url 'peavy:debug_page' record.pk %}">View debug page.</a>
</div>
{% endif %}
</div>

0 comments on commit 6680af8

Please sign in to comment.
Something went wrong with that request. Please try again.