Install & Compatibility
Where this runs
tested against v1.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
NavHelper
✓ from geelweb.django import NavHelper
✗ from geelweb.django import NavHelper
Set up a Section model with parent hierarchy, add 'navhelper' to INSTALLED_APPS, then use the navhelper_menu template tag to render a nested menu.
# settings.py
INSTALLED_APPS = [
...
'navhelper',
]
# models.py
from django.db import models
from navhelper import NavHelper
class Section(models.Model):
title = models.CharField(max_length=100)
slug = models.SlugField()
parent = models.ForeignKey('self', null=True, blank=True, on_delete=models.CASCADE)
url = models.CharField(max_length=200, blank=True)
def __str__(self):
return self.title
# urls.py
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('section/<slug:slug>/', views.section_detail, name='section_detail'),
]
# template.html
{% load navhelper %}
<ul>
{% navhelper_menu sections %}
</ul>
Upgrade
Version history
1.0.0latest on PyPI · released Jun 19, 2023
Audit
Dependencies
djangorequiredRequired for template tags and ORM.