The Global Menu is an open-source build for python-django framework. It provides an easy way to create menu base on model.
To get started build menu :
- Add
gmenu
to yourINSTALLED_APPS
setting like this :
INSTALLED_APPS = [
...
'gmenu',
]
- Include the gmenu URLconf in your project urls.py like this::
path('', include('gmenu.urls')),
-
On root folder (where
manage.py
reside), runpython manage.py migrate
to create the menu models. -
On same folder as above, run
python manage.py createsuperuser
to create super user, so you have access to admin page. -
Start the development server and visit
http://127.0.0.1:8000/admin/
-
Click on
Menus
and thenadd menu +
. Field you have to full field isuser
andname
The complete fields is :Field Name Value user
choose username you have been create on step 4 parent
parent menu, leave it blank if you want to create root menu name
menu name, appear in your project link
where to go if user click this menu icon
you can use awesome font from bootstrap order menu
order number menu kind
frontend without login
orfrontend with login
orbackend
menuis visible
make menu visible or invisible is master menu
make menu avilable for another user is statis menu
make menu have access to statis page (the page is created by user)