A simple menu for Django
Project description
Installation
Run python setup.py install or just place simplemenu directory into a directory which is on your PYTHONPATH.
Add 'simplemenu' to your INSTALLED_APPS setting.
Run python manage.py syncdb.
Register your pages by adding calls to simplemenu.register.
Add menu to your templates.
Note that this application requires Django 1.1 or newer.
Templates
This app has only one tag:
{% get_simplemenu as [varname] %}
It stores QuerySet of all menu items in a context variable. Example:
{% load simplemenu_tags %} {% get_simplemenu as menu %} {% for item in menu %} <a href="{{ item.page.url }}">{{ item.name }}</a> {% endfor %}
0.1.0 (2018-11-23)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-simplemenu-simplified-2.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7cf1ab5766cf18b6d171bdde23a3c19c59c1676efc45e33dcab3ee82689eeec |
|
MD5 | e5dc0ed49ecb6aee11f33d687dace3a9 |
|
BLAKE2b-256 | 46e40968d3522325bd059caab6c17316e84e07004ff95b1edee2f6df61cc76d9 |