https://github.com/znc-sistemas/django-menu
dynamic menus for Django Apps
https://github.com/znc-sistemas/django-menu
Last synced: 7 months ago
JSON representation
dynamic menus for Django Apps
- Host: GitHub
- URL: https://github.com/znc-sistemas/django-menu
- Owner: znc-sistemas
- Created: 2012-06-06T17:18:32.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-09-07T12:32:22.000Z (about 13 years ago)
- Last Synced: 2025-02-16T10:14:58.876Z (9 months ago)
- Language: Python
- Size: 353 KB
- Stars: 1
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
django-menu
===========
Dynamic menus for Django Apps
Installing
==========
To install, put this in settings.py
```python
INSTALLED_APPS = (
...
'menu',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'menu.context_processors.menu',
'menu.context_processors.submenu',
)
```
Setting up
==========
```python
MENU = (
('URI', 'Label',
(
('Submenu', 'submenu', None, 'Link permission (optional)'),
), 'Link permission (optional)'),
# Or
('URI', 'Label', None, 'Link permission (optional)'),
)
```