Changes between Initial Version and Version 1 of Ticket #17296


Ignore:
Timestamp:
Nov 26, 2011, 11:10:47 AM (13 years ago)
Author:
Aymeric Augustin
Comment:

(Sort of) fixed formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17296 – Description

    initial v1  
    22
    33After I went through the  django code I found that in login_required decorator (django/contrib/auth/views) there is checking for host
     4{{{
    45           ''' netloc = urlparse.urlparse(redirect_to)[1]
    56'''
     
    1213           ''' elif netloc and netloc != request.get_host():
    1314                redirect_to = settings.LOGIN_REDIRECT_URL'''
    14 
     15}}}
    1516but this never succeed because staff_required decorator passing redirect_to value as request_full_path() and it doesnot contain host name.
Back to Top