Django contrib admin redirection error on actions
|audirs2 [at] gmail.com
|redirect remote_auth_backend nginx
|Patch needs improvement:
Description (last modified by )
When user remote user authentication backend and accessing django application via Nginx proxy on subdomain behind this proxy the admin interface does not redirect from admin actions correctly.
Settings below are applied:
Server is running mod_wsgi
accessing works ok.
When using an admin action to add/delete etc redirects badly.
E.g. on page url below you update some config and click add as the admin action, the underlying code carries out the action.
However when django redirects back to the apps list of objects it redirects badly to a url shown in the form below
It appears that the url resolution is using the domain with subdomain stripped and then as this is not the same full url it appends this url to the current one