Answer the question
In order to leave comments, you need to log in
How to make sitebars in Django?
Let's say I'm building a website store or just an infoportal. And I understand from a bunch of tourtorials how to display the desired content on the page.
I create a model, then in the view, then on the content block, then on base.html, which, in turn, includes footer and header.
But I also have left and right columns in which there is not always static information, there is the last comment, top products, or just some information from some model (for example, a page about us, or a plate)
The question is how to connect such blocks correctly and how to create (otherwise I got a little confused, and I didn’t find really understandable information for myself)?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question