#14510: Django admin doesn't consider settings.LOGIN_REDIRECT_URL
-----------------------------------+----------------------------------------
          Reporter:  googol        |         Owner:  nobody
            Status:  closed        |     Milestone:        
         Component:  Contrib apps  |       Version:  1.2   
        Resolution:  wontfix       |      Keywords:        
             Stage:  Unreviewed    |     Has_patch:  0     
        Needs_docs:  0             |   Needs_tests:  0     
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Changes (by gabrielhurley):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 This behavior is intentional (to the best of my knowledge and
 understanding). LOGIN_REDIRECT_URL is meant for redirecting users to a
 landing page or other such URL in the public-facing portion of your
 website. It would be extremely frustrating to log in to the Django admin
 app and have it redirect me to a page elsewhere on the site.

 If your use case involves customizing the admin in some way such that you
 want users to land on a specific admin page after they log in (or to have
 it be customizable based on some parameter), my inclination is that the
 best thing to do is to subclass AdminSite and override the login method.

 If you feel there is a broad use case for having the admin login function
 allow redirecting to arbitrary locations, I would suggest starting a
 thread on the Django Developers mailing list to gain support for it.

 Thanks for the report!

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14510#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to