I'm a Django newbie going through the tutorial. I had some difficulty
figuring out how to implement custom Admin templates. Having done so,
and wishing that this information was in the tutorial, I submit the
following.
I want to have a copy of base_site.html at each level of the
application just so I could see what is displayed when each one is
disabled.
|
|-- mysite
| |-- __init__.py
| |-- manage.py
| |-- polls
| | |-- __init__.py
| | |-- models.py
| | |-- templates
| | | `-- admin
| | | `-- base_site.html
| | `-- views.py
| |-- settings.py
| |-- templates
| | `-- admin
| | `-- base_site.html
| |-- urls.py
`-- templates
`-- admin
`-- base_site.html
In the TEMPLATE_DIRS section of settings.py, I ended up with
TEMPLATE_DIRS = (
"/home/alan/develop/python/mysite/polls/templates",
"/home/alan/develop/python/mysite/templates",
"/home/alan/develop/python/templates",
)
Note that the order of these directories is the search order that
Django uses to look for a base_site.html page to use.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---