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?