Alexander Leyva Caro
Alexander Leyva Caro

Reputation: 1253

Change the directory name of my templates tags and filters

The Django specification say that:

The app should contain a templatetags directory, at the same level as models.py, views.py, etc.

It is really necessary do that in this exactly way?
I'll want to change the directory name of my template tags.

Upvotes: 0

Views: 77

Answers (1)

awwester
awwester

Reputation: 10172

It looks to me like the answer is "yes, it's necessary". It's probably a good idea anyway to keep the structure as close to possible to the normal Django structure.

There's a way to add new template folders through the TEMPLATE_DIRS property in settings, but I'm not seeing anything similar for template tags.

I looked through the django.templatetags source code but didn't see anything similar to the django.template.loader, which is what allows the functionality to change your template folder.

Hope this helps.

Upvotes: 1

Related Questions