Faced such a problem: it is necessary to make a menu that could be edited from the admin panel and just inserted into the template, for example

{{ menu }} 

How to implement it in such a way that you do not have to insert into each view the code that generates and returns this menu?

    2 answers 2

    Write your templatetag

      There are lots of options. Here is one - treemenus, try, simple and clear ... pip install treemenus + read the instructions