On 18/01/2015 5:01 PM, Kishan Mehta wrote:
Hello all,
> I want to customise how admin page looks
> I have my template folder in my application folder
at C:\Users\kishan\Django_App\polls\templates\admin
> In settings.py I have added TEMPLATE_DIRS =
[os.path.join(BASE_DIR,'C:\Users\kishan\Django_App\polls\templates')] .
You template dirs will fail if your BASE_DIR has any path value at all.
The following is what you really want ...
# if templates are not found here look in app_name/templates
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'templates/').replace('\\','/'),
)
... Then in BASE_DIR/templates make a dir /admin and copy the
../site-packages/django/contrib/admin/templates/admin/<whatever>.html
template you want to change into your project.
It should end up in BASE_DIR/templates/admin/<whatever>.html
As indicated in the comment line above, if Django doesn't find the
template it is looking for in your project's ../admin dir it will look
in its own template dir.
> Changes I have made to base_site.html is not reflecting in admin page.
Please help
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/7fad9e76-3bcf-49b3-b45d-cfdec09e8a65%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/7fad9e76-3bcf-49b3-b45d-cfdec09e8a65%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/54BC43EC.8080603%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.