Django template file extension preference
django, naming-conventions
Solution
I honestly believe we need a standard extension for django template files. A template is NOT valid CSS/HTML/XML or anything else.
Nick Presta wrote:
- You already know the files are templates because they should be in a template directory
- You don't want to have to open up files to see what they are (HTML, CSS, XML, etc). You would have to do this with a generic extension like .djt.
Point #2 can also be used in favor of a default extension or a mix (like .html.djt). Without a differentiated extension, you need to open a file in order to know it's a django template and not a regular (e.g. HTML) file.
And point #1 is just plain wrong, considering that they are not always in a template directory.
Problem
This Django ticket says that they will not add a default Django template file extension. What file extension do you use?