Re: How to make my custom AdminSite class use my custom login/logout views?
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:
-- 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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home