Code

Opened 7 months ago

Closed 7 months 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

Attachments (0)

Change History (1)

comment:1 Changed 7 months ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.