mirror of https://github.com/django/django.git
Refined exception message to make sure we don't confuse users.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fa852966c6
commit
16ad1d951a
|
@ -21,13 +21,11 @@ class StaticFilesStorage(FileSystemStorage):
|
||||||
base_url = settings.STATIC_URL
|
base_url = settings.STATIC_URL
|
||||||
if not location:
|
if not location:
|
||||||
raise ImproperlyConfigured("You're using the staticfiles app "
|
raise ImproperlyConfigured("You're using the staticfiles app "
|
||||||
"without having set the STATIC_ROOT setting. Set it to "
|
"without having set the STATIC_ROOT setting.")
|
||||||
"the absolute path of the directory that holds static files.")
|
|
||||||
# check for None since we might use a root URL (``/``)
|
# check for None since we might use a root URL (``/``)
|
||||||
if base_url is None:
|
if base_url is None:
|
||||||
raise ImproperlyConfigured("You're using the staticfiles app "
|
raise ImproperlyConfigured("You're using the staticfiles app "
|
||||||
"without having set the STATIC_URL setting. Set it to "
|
"without having set the STATIC_URL setting.")
|
||||||
"URL that handles the files served from STATIC_ROOT.")
|
|
||||||
utils.check_settings()
|
utils.check_settings()
|
||||||
super(StaticFilesStorage, self).__init__(location, base_url, *args, **kwargs)
|
super(StaticFilesStorage, self).__init__(location, base_url, *args, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue