My proxy (nginx 80 public port) in django (wsgi localhost port 8000 Puerto Ricon) removes the path to the "/ app" application, so requests for http://server/app/hello appear as django as /hello and requests for http://server/app/admin appears as django as /admin .
The problem is that the admin site generates output with absolute URLs such as <form action="/admin/"... on the login screen. Thus, the user sees the administrator login screen, but he is sent to http://server/admin , which does not exist. (I kind of hoped that it would use relative URLs and work anywhere.)
What is the easiest way to make admin pages universally add "/ app", for example, form action="/app/admin/" to all the URLs it generates in the page output? I hope for something built into Django as a simple definition, and there is no need to create special filters and then rewrite the templates to use them, but I can not find it.
maxpolk
source share