1
0
mirror of https://github.com/django/django.git synced 2025-10-30 17:16:10 +00:00

Fixed pyinotify performance regression in 15f82c7011

Refs #9722. Thanks Tim Graham for the review.
This commit is contained in:
Claude Paroz
2014-07-05 14:43:12 +02:00
parent b144bfb5ce
commit 6d302f6396
3 changed files with 54 additions and 10 deletions

View File

@@ -12,6 +12,10 @@ class StaticFilesHandler(WSGIHandler):
WSGI middleware that intercepts calls to the static files directory, as
defined by the STATIC_URL setting, and serves those files.
"""
# May be used to differentiate between handler types (e.g. in a
# request_finished signal)
handles_files = True
def __init__(self, application):
self.application = application
self.base_url = urlparse(self.get_base_url())