Django-navutils is a lightweight package for handling menu and breadcrumbs inside your django project.
Features:
No database calls
Highly customizable
User targeting in menu, so you can display a menu node to users that match a specific criteria (authenticated, anonymous, staff member, or any custom check)
Translatable
Requirements
Python >= 2.7 or >= 3.3
Django >= 1.7
The menu system may be integrated in any project, but the breadcrumbs part requires that you use class-based views.
Install
Package is available on pip and can be installed via pip install django-navutils.
You’ll also have to add navutils to your settings.INSTALLED_APPS
Also add the following to settings.CONTEXT_PROCESSORS:
CONTEXT_PROCESSORS = (
# ...
'navutils.context_processors.menus',
)
Usage
Metadata
Release files for django-navutils 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-navutils-0.1.2.tar.gz | 10.1 kB | Details |