Reputation: 151
I am trying to follow Django's Template system while using a base.html file, however I am unsure of where to place base.html inside of my project. With namespacing in mind, Django suggests that your templates go inside of your 'project_name/app_name/templates/app_name/' directory. Since I would like to extend my base.html in multiple apps in my project, where should my base.html reside?
Upvotes: 14
Views: 11462
Reputation: 473763
Since this is a shared template, place it in the project's templates
directory:
project_name/templates/base.html
Also see:
Upvotes: 19