Customize admin look & fee (Django 1.7 / Windows)

63 views
Skip to first unread message

Dario Chemello

unread,
Sep 25, 2014, 11:47:28 AM9/25/14
to django...@googlegroups.com
Hi all,

I've read a lot about other posts regardind problems to this part of the tutorial:


I've tried everything, but nothing happen! 

- using 
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]

as in the tutorial, nothing change

- put directly the path: 

TEMPLATE_DIRS = [
   
'C:/Users/Dario/mysite/templates'
]

nothing!

- Using:
TEMPLATE_LOADERS = ('django.template.loaders.filesystem.Loader','django.template.loaders.app_directories.Loader')

before TEMPLATE_DIRS... nothing!!!!

Under C:/Users/Dario/mysite/templates obviously I've got an admin dir and then the base_site.html file modified.



Is it possible that's happens cause Python/django are on disk "D:" and the project under "C:" ???

Please help me... probably it's a little thing but I cannot seem to find a solution!

Thanks to all!!!

Collin Anderson

unread,
Sep 25, 2014, 4:42:51 PM9/25/14
to django...@googlegroups.com
Did you save your template here?

C:/Users/Dario/mysite/templates/admin/base_site.html

Dario Chemello

unread,
Sep 26, 2014, 2:37:58 AM9/26/14
to django...@googlegroups.com
Yes!
And I change on the template only the "title":

{% extends "admin/base.html" %}


{% block title %}{{ title }} | {{ site_title|default:_('Dario Administration') }}{% endblock %}


{% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}">{{ site_header|default:_('Dario Administration') }}</a></h1>
{% endblock %}


{% block nav-global %}{% endblock %}

Dario Chemello

unread,
Sep 26, 2014, 2:41:27 AM9/26/14
to django...@googlegroups.com
Uhm.....

site_title|default:_('Dario Administration')


Is site_title valorized???
I think, if yes, that the problem is only there. 

But on tutorial, imho, this part is not so clear.

Bit Rainbow

unread,
Oct 6, 2014, 4:05:02 PM10/6/14
to django...@googlegroups.com
Did you ever get an answer to this, I'm a bit unsure on why my template files aren't working?
Reply all
Reply to author
Forward
0 new messages