Template files can be located anywhere on the filesystem, provided the web server has the appropriate permission to read the directory and files within. It's a common practice in Django development to make a directory for your templates with subdirectories for each of your application's templates.
In our ongoing example project, we created a directory at mycompany/templates
and created a press subdirectory underneath it.
Note
For some projects with many developers, it might make more sense to keep your template files in a completely separate location away from your code, such as /projects/html
. This way, you can easily set special permissions on these files or give template authors a separate place on the filesystem to work, which keeps them completely out of your code.