Hi I am trying to override the _display_login_form from

http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/views/decorators.py

So basicly I have the following code
----------------------------------------------------------------------------------
from django.http import HttpResponseRedirect
from django.contrib.admin.views import decorators

def _redirect_login(request, *args, **kwargs):
    return HttpResponseRedirect('http://www.google.com')

decorators._display_login_form = _redirect_login
----------------------------------------------------------------------------------

I tried to add this inside models/middleware(precess_request)/urls
every time when I visit the admin login page I am not redirected at
all. am I missing something?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to