summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Jurewicz <krzysztof.jurewicz@gmail.com>2013-12-01 20:12:48 +0100
committerTim Graham <timograham@gmail.com>2013-12-01 18:03:59 -0500
commitb8be3055f1d81ee956ea1572c48cc352b63099db (patch)
treeb6a1da24e47f0ee5d07050bb981bc103740f80da
parent3b60ffa334e68cf44ac79c2997c05a2d14da15d5 (diff)
Fixed #21543 -- Removed base_dir attribute in StaticFilesHandler.
This code seems to be an artifact of AdminMediaHandler removed in [5c53e30607].
-rw-r--r--django/contrib/staticfiles/handlers.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/django/contrib/staticfiles/handlers.py b/django/contrib/staticfiles/handlers.py
index 3fe0c9da26..bb54db6b7d 100644
--- a/django/contrib/staticfiles/handlers.py
+++ b/django/contrib/staticfiles/handlers.py
@@ -12,18 +12,11 @@ class StaticFilesHandler(WSGIHandler):
WSGI middleware that intercepts calls to the static files directory, as
defined by the STATIC_URL setting, and serves those files.
"""
- def __init__(self, application, base_dir=None):
+ def __init__(self, application):
self.application = application
- if base_dir:
- self.base_dir = base_dir
- else:
- self.base_dir = self.get_base_dir()
self.base_url = urlparse(self.get_base_url())
super(StaticFilesHandler, self).__init__()
- def get_base_dir(self):
- return settings.STATIC_ROOT
-
def get_base_url(self):
utils.check_settings()
return settings.STATIC_URL