django-navhelper
Django template tags designed to help the navigation rendering
What it is and what it does
django-navhelper is a small Django template tag library that solves the common problem of highlighting the active navigation item in a menu. It provides two template tags—navactive and renavactive—that return an 'active' CSS class (or a custom class you configure) when the current request matches a given view name or URL pattern. You load the tags in your template and wrap them around menu links to automatically style the active item.
The package has no runtime dependencies beyond Django itself, making it lightweight to install. It requires Django 4.2 and Python 3.10 according to its documentation. However, the project is abandoned—the last commit was 2023-06-19. While it has no known security vulnerabilities, there is no active maintenance, so compatibility with newer Django or Python releases is not guaranteed.
Use it for:
- Highlight the current page in a site navigation menu without writing custom template logic in each template.
- Add active styling to breadcrumb navigation based on the current request URL pattern.
- Style multi-level navigation menus where you need to mark parent items as active when viewing child pages.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Django template tags to automatically add active CSS classes to navigation menu items based on the current request URL.
Yes, if you are locked into Django 4.2 and Python 3.10 and need a simple, lightweight way to mark active navigation items. The MIT license is permissive, install friction is low, and there are no known vulnerabilities. However, the package is abandoned with no recent maintenance, so do not expect updates for newer Django or Python versions. Consider it only for stable, long-lived projects on those specific versions, or evaluate actively maintained alternatives if you anticipate upgrading.
Install
django-navhelper on PyPI
pip
pip install django-navhelperuv
uv add django-navhelperpoetry
poetry add django-navhelperInstalling django-navhelper
Before you install
Low install friction with no runtime dependencies. However, the package is abandoned—last commit was 2023-06-19. It targets Django 4.2 and Python 3.10 specifically; compatibility with newer versions is unverified.
License in practice
MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.
Quickstart
pip install django-navhelper==1.0.0
# In Django settings.py, add to INSTALLED_APPS:
# 'geelweb.django.navhelper'
# In template:
{% load navactive %}
<a href="{% url 'view_name' %}" class="{% navactive 'view_name' %}">Menu Entry</a>
Requires Django 4.2 and Python 3.10 as stated in the package documentation.
Verify before relying
- Whether the package works with Django versions newer than 4.2 or Python versions newer than 3.10.
- Current state of the GitHub repository and whether it accepts pull requests or maintenance contributions.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 237,123/month — #8,965 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_navhelper-1.0.0-py3-none-any.whl
Keywords: django, menu, navigation
Tags
More Dynamic Content packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
soupsieveSoupsieve is a CSS selector library designed to…
permissive · top 100 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
django-webpack-loaderIntegrates Webpack-compiled bundles into Django…
permissive · top 5,000 on PyPI
django-unfoldReplaces Django's default admin interface with…
permissive · top 5,000 on PyPI
sphinx-bootstrap-themeA Sphinx theme that applies Bootstrap CSS and…
permissive · top 15,000 on PyPI
django-bootstrap5Provides Django template tags and filters to…
permissive · top 15,000 on PyPI
django-tailwindIntegrates Tailwind CSS into Django projects…
permissive · top 15,000 on PyPI
django-aceIntegrates the ACE code editor into Django…
permissive · top 15,000 on PyPI
crispy-tailwindProvides Tailwind CSS styling templates for…
permissive · top 15,000 on PyPI
djangocms-text-ckeditorIntegrates CKEditor (v4.17.2) as a text editing…
permissive · top 15,000 on PyPI
django-prettyjsonAdds a collapsible, interactive JSON viewer…
permissive · top 15,000 on PyPI
paginateDivides large lists or query results into…
permissive · top 5,000 on PyPI