Opened 11 years ago

Closed 11 years ago

#21091 closed Uncategorized (invalid)

Specify where TEMPLATE_DIRS should be added in settings.py

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If the code

TEMPLATE_DIRS = (

'/path/to/mysite/templates', # Change this to your own directory.

)

is added before INSTALLED_APPS it does not work. This should be pointed out.

Judging by the upvotes at the below link it is a fairly common oversight.
http://stackoverflow.com/questions/11793890/custom-django-admin-templates-not-working

Change History (1)

comment:1 by Aymeric Augustin, 11 years ago

Resolution: invalid
Status: newclosed

I'm sorry, but I think you're confused. The order in which settings are declared doesn't matter.

The StackOverflow question you link to doesn't discuss the order of TEMPLATE_DIRS and INSTALLED_APPS.

Note: See TracTickets for help on using tickets.
Back to Top