Ok, thanks, it works. I tried different paths but not the one without "admin" at the end, while the doc is clear about that... Anyway! Thank you. Best
On Nov 8, 5:56 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Tue, Nov 8, 2011 at 4:46 PM, Nicolas <nicolas.gi...@gmail.com> 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-a... > > 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 django-users@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.