Try putting this in your main base_site.html template: {{ app.name|default:"Django" }} Administration
I'm not sure if the app info is available in the changelist/change form contexts, but it's worth a shot. On 8/1/06, Tamara D. Snyder <[EMAIL PROTECTED]> wrote: > > I'm sorry to keep bothering the list about this, but I just can't get > custom admin templates to work properly. > > Here's what I have right now: > 2 apps, one called Blog and one called Events2 > > I would like it if the branding at the top of the admin page changed > depending on the app that I am in. So if I am in Blog/posts I'd like > the branding to say "Blog Administration" and if I am in Events2/ > Events then I'd like the branding to say "Events Administration" > > Branding is controlled in admin/base_site.html > > I think I should be able to do this: > > Project/ > templates/ > admin/ > blog/ > base_site.html > events2/ > base_site.html > > and then have both Blog and Events2 end up with their correct > branding. But this does not work. I end up with "Django > Administration" at the top of both of them. > > I have tried various combinations of directories and subdirectories, > changing names and locations, and nothing seems to work the way I > want it to. > > My TEMPLATE_DIRS is set to 'path/project/templates', and if I put a > base_site.html directly under admin (not in either blog or events2 > directories), then it will change the branding for both blog and > events2. Unfortunately, that is not what I want. > > Is what I want possible? Is there some other way to do this? What > am I doing wrong? > > Thanks for the help, > > Tamara > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---