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.4.tar.gz (13.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: django-navutils-0.4.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-navutils-0.4.tar.gz
Algorithm Hash digest
SHA256 c3adc6bd15b7f9bbf5ed2f9d664efc5948099a9c2c1b67919dee02d3abc8cc81
MD5 0ea62352940f414480e7b0e07387c886
BLAKE2b-256 c521ea1f91053fb633404ca7be4aa3e419cea87197ef5c7cec58fc47521a2817

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