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. Safer cache key generation by cmheisel 3 years, 2 months ago
  2. ScriptPrefixMiddleware by shellsage 2 years, 5 months ago
  3. SSL Middleware for Webfaction by parlar 4 years, 8 months ago
  4. Serve static media and indexes from app directories [Python2.5, Development only] by adamlofts 3 years, 5 months ago
  5. FirstRun Middleware by TheMysteriousX 9 months, 1 week ago

Comments

(Forgotten your password?)