diff --git a/archilance/settings/base.py b/archilance/settings/base.py index 7d33f1e..cd58b99 100644 --- a/archilance/settings/base.py +++ b/archilance/settings/base.py @@ -41,6 +41,7 @@ THIRD_PARTY_APPS = [ 'mathfilters', # Basic math operations in templates; https://pypi.python.org/pypi/django-mathfilters 'generic_relations', # https://github.com/Ian-Foote/rest-framework-generic-relations 'hitcount', + 'django_activeurl', ] LOCAL_APPS = [ @@ -85,6 +86,7 @@ TEMPLATES = [ 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', + 'django.core.context_processors.request', ], # Load these templatetags by default: diff --git a/requirements/base.txt b/requirements/base.txt index b64af10..1c0f8de 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -41,3 +41,4 @@ django-mathfilters gunicorn==19.6.0 rest-framework-generic-relations django-hitcount +django-activeurl==0.1.9 diff --git a/templates/partials/header.html b/templates/partials/header.html index 34bd116..2f88de2 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -1,6 +1,7 @@ {% load staticfiles %} {% load thumbnail %} {% load user_tags %} +{% load activeurl %}
@@ -8,7 +9,7 @@
- +{% activeurl %} {% if request.user.is_authenticated %}
{% endif %} - +{% endactiveurl %} {% if request.user.is_authenticated %}