You must specify in the TEMPLATE_DIRS path to the dir where templates were
placed, not abs path file
So
TEMPLATE_DIRS = (
"/Users/xuchen81/Django/mysite/",
)
should work, coz' "In order to override one or more of them, first create
an admin directory in your project's templates directory. This can be any of
the directories you specified in
TEMPLATE_DIRS<http://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATE_DIRS>
."
2011/1/17 Chen Xu <[email protected]>
> Hi, Django group:
> I am floowing the tutorial 1 on Django site, which is a poll application
> I have problem with overriding the admin page
> I copied admin/base_site.html from (django/contrib/admin/templates)
> to /Users/xuchen81/Django/mysite/admin/base_site.html
>
> and add this line "/Users/xuchen81/Django/mysite/admin/base_site.html"
> to TEMPLATE_DIRS in my settings.py file. It looks like the following:
>
> TEMPLATE_DIRS = (
> "/Users/xuchen81/Django/mysite/admin/base_site.html",
> )
>
> but the admin is just doesn't use this file, it still uses the default
> base_site.html.
>
> Could anyone please help me?
>
> --
*Vovk Donets*
python/django developer
skype: suunbeeam
icq: 232490857
mail: [email protected]
--
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.