Why menu is not working correctly Django?

Made a separate menu(app) template header.html and connected to base.html through include. When you navigate to another page(app) the menu disappears. How to fix this error.
June 26th 19 at 14:19
1 answer
June 26th 19 at 14:21
I suspect that will save you inclusion tags.
in my opinion inclusion tags need for easy insertion (and possibly single) fragment of the html template with a particular kind of context... if you use a render without context (hardcorenude lists... menu, etc.) you can just use includes... - Fidel_Osinski51 commented on June 26th 19 at 14:24
if it somewhere works, somewhere not, this is clearly the context - glennie_Mer commented on June 26th 19 at 14:27
: do not argue, but in the comments to my answer - it was said that there's just a menu... IMHO: problems with activation/template inheritance - Fidel_Osinski51 commented on June 26th 19 at 14:30
Heard function(menu) need to pass each views.py and every function for all app. Is this correct ? - demond_Jacobi41 commented on June 26th 19 at 14:33
: If there is a context for a piece of html to insert in different parts of the code, then there are 3 choices:
1) shoot in every vyuha, the context (in this case, menu) and render with conventional includem
2) ispolzovatj inclusion tag and prepare the context
3) use the context processors (in each request, it throws the specified context) and is also rendered with the usual includes - Fidel_Osinski51 commented on June 26th 19 at 14:36

Find more questions by tags Django