Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 16ad1d951afca1d5cee6e736fbabf67ea7cd9e97 1 parent fa85296
Jannis Leidel authored March 18, 2011

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. 6  django/contrib/staticfiles/storage.py
6  django/contrib/staticfiles/storage.py
@@ -21,13 +21,11 @@ def __init__(self, location=None, base_url=None, *args, **kwargs):
21 21
             base_url = settings.STATIC_URL
22 22
         if not location:
23 23
             raise ImproperlyConfigured("You're using the staticfiles app "
24  
-                "without having set the STATIC_ROOT setting. Set it to "
25  
-                "the absolute path of the directory that holds static files.")
  24
+                "without having set the STATIC_ROOT setting.")
26 25
         # check for None since we might use a root URL (``/``)
27 26
         if base_url is None:
28 27
             raise ImproperlyConfigured("You're using the staticfiles app "
29  
-                "without having set the STATIC_URL setting. Set it to "
30  
-                "URL that handles the files served from STATIC_ROOT.")
  28
+                "without having set the STATIC_URL setting.")
31 29
         utils.check_settings()
32 30
         super(StaticFilesStorage, self).__init__(location, base_url, *args, **kwargs)
33 31
 

0 notes on commit 16ad1d9

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