Changes between Initial Version and Version 1 of Ticket #17296
- Timestamp:
- Nov 26, 2011, 11:10:47 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17296 – Description
initial v1 2 2 3 3 After I went through the django code I found that in login_required decorator (django/contrib/auth/views) there is checking for host 4 {{{ 4 5 ''' netloc = urlparse.urlparse(redirect_to)[1] 5 6 ''' … … 12 13 ''' elif netloc and netloc != request.get_host(): 13 14 redirect_to = settings.LOGIN_REDIRECT_URL''' 14 15 }}} 15 16 but this never succeed because staff_required decorator passing redirect_to value as request_full_path() and it doesnot contain host name.