On Mar 25, 3:29 pm, Larry Martell <[email protected]> wrote: > I have a client that has an app built with django. On every page of > their app is a link to their admin site. They tell me the admin site > is generated entirely by django, and they've never customized it > before. On the very first line of the admin page it says: > > Django administration Welcome, admin. Change password / Log out > > They want me to add a link to that line, to the left of "Django > administration" that will take them back to the page they were on when > they clicked on the link to get them to the admin site. > > So I have 2 issues here: > > 1) How do I override that line to add the link? It appears that page > is generated by contrib/admin/templates/admin/base.html, and I tried > to override it by following the directions > athttps://docs.djangoproject.com/en/1.2/ref/contrib/admin/#overriding-a..., > but whatever I do seems to have no effect. > > 2) How can I get the link of the page of the app they came from? It's > not simply just going back one page, as they could have navigated all > over the place of the admin site before clicking the "Back to app" > link. > > Thanks! > -larry
Is there anyone that can provide some assistance with overriding base_site.html? I copied django/contrib/admin/templates/admin/ base_site.html to my projects's templates/admin dir, but changes to it are not getting picked up. I also tried adding that to TEMPLATE_DIRS (there was nothing in it before). In urlpatterns I have: (r'^admin/', include(admin.site.urls)) - does that need to change? -- 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.

