On Tue, Nov 8, 2011 at 4:46 PM, Nicolas <[email protected]> wrote: > Dear all, > I'm almost at the end of the tutorial part 2 but I can't manage to > change "Django administration" to something different. What I did: > - create a template/admin subdirectory into the folder containing all > the files related to mysite (it looks like this; C:/Users/songbird/ > Documents/mysite/template/admin/) > - copy/paste base_site.html to that subdirectory > - edit it and change "Django administration" to "Bref" > - edit the settings.py file and add the path to the new subdirectory > ('C:/Users/songbird/Documents/mysite/template/admin/base_site',)
That doesn't look like a real subdirectory - isn't 'base_site' part of the template name, not the directory? Also, according to the docs, this isn't right. You should add the directory containing the 'admin' directory to TEMPLATE_DIRS. Create a directory for your project templates and add that location to TEMPLATE_DIRS. Create a directory called 'admin' in this directory. Create a directory named after each app you want to override. Place the global template files you wish to override in the 'admin' directory. Place the per-app overrides in the 'admin/<app name>' directory. https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#overriding-admin-templates Hope that helps Tom -- 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.

