Installing django-simple-menu¶
Install
django-simple-menu
using pip:pip install django-simple-menu
Add
simple_menu
to yourINSTALLED_APPS
list in your settingsdjango-simple-menu
requires that therequest
object be available in the context when you call the{% generate_menu %}
template tag. This means that you need to ensure that yourTEMPLATE_CONTEXT_PROCESSORS
setting includesdjango.core.context_processors.request
, which it doesn’t by default.