offline / django-annoying

This is django application that try to eliminate annoying things in Django framework.

Changed (Δ5 bytes):

raw changeset »

annoying/middlewares.py (1 lines added, 1 lines removed)

Up to file-list annoying/middlewares.py:

@@ -13,6 +13,6 @@ class StaticServe(object):
13
13
14
14
    def process_request(self, request):
15
15
        if settings.DEBUG:
16
            match = regex.search(request.path)
16
            match = self.regex.search(request.path)
17
17
            if match:
18
18
                return serve(request, match.group(1), settings.MEDIA_ROOT)