When you make a page with Django, we write a code to add it to and activate it:

{% if nbar == 'home' %} {% concern %}

What’s all this?

The purpose of this is to show that page actively on which ever page you are on.

Link to django menu

That’s how you’re adding the menu. So, how you registered the menu page (navbar.html) enter it and update it this way

Then open which .py file you are using to display your pages. (views.py)

{'nbar': 'home'}
Link to django menu

Add this code to the end of the line after comma. That’s it. If you have not made a transactional error, you can actively use the menu.

Leave a Reply

Social profiles