Middleware that fixes URLs generation for admin and {% url %} for SCGI and WSGI

1
2
3
class MountRedirect(object):
    def process_request(self, request):
        request.path = request.META.get('SCRIPT_NAME', '') + request.path

More like this

  1. Serve static media and indexes from app directories [Python2.5, Development only] by adamlofts 4 years, 10 months ago
  2. FirstRun Middleware by TheMysteriousX 2 years, 1 month ago
  3. SSL Middleware for Webfaction by parlar 6 years, 1 month ago
  4. easy absolute path for settings.py by pgugged 4 years, 11 months ago
  5. showing environment variables in the django admin by tonemcd 3 years, 4 months ago

Comments

(Forgotten your password?)