Using Ubuntu 10.04...

I'm just starting out on django and going through the tutorials.
Everything installed, got the polls working in parts 1 and 2 of the
tutorial, and I think I'm sailing.  Then I get to the bottom of Part
2, to the section "Customize the admin look and feel".

In settings.py I followed the instructions:

"Now copy the template admin/base_site.html  from within the default
Django admin template directory (django/contrib/admin/templates) into
an admin subdirectory of whichever directory you're using in
TEMPLATE_DIRS. For example, if your TEMPLATE_DIRS  includes "/home/
my_username/mytemplates", as above, then copy django/contrib/admin/
templates/admin/base_site.html  to /home/my_username/mytemplates/admin/
base_site.html. Don't forget that admin subdirectory.

Then, just edit the file and replace the generic Django text with your
own site's name as you see fit."

I changed the title in my local admin folder to this:

{% block title %}{{ title }} | {% trans "Dave's Tutorials" %}{%
endblock %}

{% block branding %}
<h1 id="site-name">{% trans "Dave's Tutorials" %}</h1>
{% endblock %}

Nothing happened.  My page still reads "Django Administration.

I stopped the server, ran syncdb, and restarted the server.  No
change.

Thinking that somehow TEMPLATE_DIRS wasn't registering the new
location, I went back to the default director, which is in the /home/
local/share... directory, renamed the original and edited a new
base_site.html as I had done in my tutorial directory.

As before, ran syncdb and restarted the server.

Still no change.  So now I'm stuck.  Why is settings.py ignoring both
the local and the default files?  Or is the default file someplace
that I haven't found yet?

Thanks for any advice you can give!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to