Skip to main content

A lightweight package for handling menus and breadcrumbs in your django project

Project description

Note: this package is still in beta. It has been successfully used in a few projects of my own. However, API may be subject to backward incompatible changes until the first major version is released.

Django-navutils is a lightweight package for handling menu and breadcrumbs inside your django project.

Features

  • No database involved (unless you want it): menus and breadcrumbs are plain old python code

  • Highly customizable

  • Conditionnal menu items display: you want to show a menu link to authenticated users only ? Anonymous ? Staff members ? A custom criteria ? You’re covered !

  • i18n-friendly: you can rely on usual django translation mechanisms

  • Unlimited menus

  • Semi-automatic current menu node detection

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

Changelog

See CHANGES.rst.

License

Project is licensed under BSD license.

Project details


Download files

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

Source Distribution

django-navutils-0.8.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

django_navutils-0.8-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file django-navutils-0.8.tar.gz.

File metadata

  • Download URL: django-navutils-0.8.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for django-navutils-0.8.tar.gz
Algorithm Hash digest
SHA256 fe63dcc89438e71e6552d0386ad8145b7de622b70ab49b9a90cb5e0a175ffffc
MD5 3e6a3150da605580005a6073d2926596
BLAKE2b-256 747c30cf09ab988a2cd8a6054d85e1b6f7dd03cccec7e841f3776ae63de310b8

See more details on using hashes here.

File details

Details for the file django_navutils-0.8-py3-none-any.whl.

File metadata

  • Download URL: django_navutils-0.8-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for django_navutils-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 28becce70d2709048d50b4cc244ad36dba675f48ab4c6e36f0dc1e82b492156c
MD5 3fb459661ec743639a090d2a260efecc
BLAKE2b-256 44af7bc2e07cfed854a8f1d7a890d2836986896a30d93eb12ad91860e8e51abe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page