Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to place my base.html file?

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?

like image 582
Jimi Avatar asked Sep 12 '14 14:09

Jimi


1 Answers

Since this is a shared template, place it in the project's templates directory:

project_name/templates/base.html

Also see:

  • What is the best location to put templates in django project?
like image 125
alecxe Avatar answered Oct 30 '22 07:10

alecxe