What is the correct way to do the template in Django / python?

1

This has been my first contact with the framework and with mvc / mvt, and I am in doubt, in terms of good practices and tals, should I make a template for each of the views or should I just make a template and change the template content dynamically through the views? The top and bottom of the pages will be the same, I just do not know how best to do it.

    
asked by anonymous 16.03.2018 / 18:14

1 answer

1

You could make a base template where you would have the navbar, footer, and recurring things in the other templates and use the django% django template system to change certain parts such as title, content, and etc.

You can take a look here: link

    
19.03.2018 / 18:51