'How to show different menu on sidebar for each page in django?

I have 2 navigation bar, one is in the top and the second is in the side. In my top navbar, I have 3 different menu, namely "Dashboard", "Manage" and "Report". I want it to display different items in my sidebar when clicking one the menu in my top navbar.

Something like this:

In my "Dashboard" (the Dashboard in the top navbar will get highlighted) and will display the following on my sidebar:

- dashboard-item-no1
- dashboard-item-no2
- dashboard-item-no3

In my "Manage" (the Manage in the top navbar will get highlighted) and will display the following on my sidebar:

- manage-item-no1
- manage-item-no2
- manage-item-no3

In my "Report" (the Report in the top navbar will get highlighted) and will display the following on my sidebar:

- report-item-no1
- report-item-no2
- report-item-no3

Can anyone please help me? I saw similar problem but it's in php and not django so I've been stuck with this problem for almost a week by now :'(



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source