summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-03-18 18:46:48 +0000
committerJannis Leidel <jannis@leidel.info>2011-03-18 18:46:48 +0000
commit16ad1d951afca1d5cee6e736fbabf67ea7cd9e97 (patch)
tree7f74322d552cb6b29eccfff749ecda880bcf5c4c
parentfa852966c6c6a0e42eddbb6eb604c1c7754c7903 (diff)
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
-rw-r--r--django/contrib/staticfiles/storage.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py
index ab4a364f9b..455be7bcc2 100644
--- a/django/contrib/staticfiles/storage.py
+++ b/django/contrib/staticfiles/storage.py
@@ -21,13 +21,11 @@ class StaticFilesStorage(FileSystemStorage):
base_url = settings.STATIC_URL
if not location:
raise ImproperlyConfigured("You're using the staticfiles app "
- "without having set the STATIC_ROOT setting. Set it to "
- "the absolute path of the directory that holds static files.")
+ "without having set the STATIC_ROOT setting.")
# check for None since we might use a root URL (``/``)
if base_url is None:
raise ImproperlyConfigured("You're using the staticfiles app "
- "without having set the STATIC_URL setting. Set it to "
- "URL that handles the files served from STATIC_ROOT.")
+ "without having set the STATIC_URL setting.")
utils.check_settings()
super(StaticFilesStorage, self).__init__(location, base_url, *args, **kwargs)