Where to place the base.html file?

I am trying to follow the Django Template system when using the base.html file, however I am not sure where to place the base.html inside my project. Given the namespace, Django suggests that your templates go into your project_name / app_name / templates / app_name / 'directory. Since I would like to extend base.html in several applications in my project, where should my base.html be located?

+4
source share
1 answer

Since this is a generic template, put it in the project directory templates:

project_name/templates/base.html

See also:

+6
source

All Articles