Skip to content
Browse files

Fixed a few test docstrings and removed an unused import in staticfiles.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 3bff7ed commit 77030ccc1ea4e1df04540e4d4594cb0d741fa2b4 @carljm carljm committed
1 django/contrib/staticfiles/
@@ -2,7 +2,6 @@
from urlparse import urlparse
from django.conf import settings
-from django.core.exceptions import ImproperlyConfigured
from django.core.handlers.wsgi import WSGIHandler
from django.contrib.staticfiles import utils
4 tests/regressiontests/staticfiles_tests/
@@ -286,7 +286,7 @@ def assertFileNotFound(self, filepath):
class TestServeDisabled(TestServeStatic):
- Test serving media from django.contrib.admin.
+ Test serving static files disabled when DEBUG is False.
def setUp(self):
super(TestServeDisabled, self).setUp()
@@ -300,7 +300,7 @@ def test_disabled_serving(self):
class TestServeStaticWithDefaultURL(TestServeStatic, TestDefaults):
- Test static asset serving view with staticfiles_urlpatterns helper.
+ Test static asset serving view with manually configured URLconf.
3 tests/regressiontests/staticfiles_tests/urls/
@@ -1,5 +1,4 @@
-from django.conf import settings
-from django.conf.urls.defaults import *
+from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('',
url(r'^static/(?P<path>.*)$', 'django.contrib.staticfiles.views.serve'),

0 comments on commit 77030cc

Please sign in to comment.
Something went wrong with that request. Please try again.