My main navigation consists of news categories that belong to the category model. I hard coded nav into templates/base.html, but want to make it dynamic ...
Is it nice to embed model code in my template? If so, how do I pull them? Should I make the nav file separately? And not only will I just rely on categories, but I will also need the "home" link and some other links.
If possible, it would be great if I could create a new navigation model, but I'm not sure how I can include news categories from the category table so that they can also be elements in the navigator.
source
share