Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Django template tags designed to help the navigation rendering

Project description

Build status

Django template tags to add active class on navigation menus


  • Django 1.6, 1.7, 1.8
  • Python 2.7, 3.2, 3.3, 3.4


From sources

python install

From PyPi

pip install django-navhelper

Configure your Django installation

Add geelweb.django.navhelper in your INSTALLED_APPS.

Ensure django.core.context_processors.request is in TEMPLATE_CONTEXT_PROCESSORS. Make sure you keep the components required by the features of Django you wish to use, in doubt keep the default values.

Template tags


Returns “active” if the pattern is found in the request path

{% load navactive %}
<li class="{% renavactive request "^/start_with_foo" %}">
    <a href="{% url "view_name" }">Menu Entry</a>


You can customize some options using settings


Default: ‘active’

The class name for active entries


Default: ‘’ (Empty string)

The class name for non-active entries

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-navhelper-0.1.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None Oct 27, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page