Did you create your custom class by inheriting from AdminSite? If so, couldn't you just override the login and logout methods in your inherited class? Or, perhaps override get_urls if you need to modify the url patterns themselves?
-Tim On Thursday, September 6, 2012 10:13:01 AM UTC-4, Stodge wrote: > > I have a custom AdminSite class working but now I'm trying to work out the > best way to make it use my custom login and logout views. I supposed I > could copy chunks of code from Django's admin sites.py and make it use my > views. But this is a hack. Is there a standard way of using custom > login/logout views in the admin site? Thanks > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/MftBifuIyIkJ. 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.

