Skip to content

Commit 24f158e

Browse files
committed
Merge pull request django-compressor#478 from iknite/fix_477
Fix: django-compressor#477 Enhanced Error display if COMPRESS_ROOT nor STATIC_ROOT is defined
2 parents 431e28b + 03c887f commit 24f158e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compressor/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def configure_root(self, value):
7777
if value is None:
7878
value = settings.STATIC_ROOT
7979
if value is None:
80-
raise ImproperlyConfigured("COMPRESS_ROOT setting must be set")
80+
raise ImproperlyConfigured('COMPRESS_ROOT defaults to ' +
81+
'STATIC_ROOT, please define either')
8182
return os.path.normcase(os.path.abspath(value))
8283

8384
def configure_url(self, value):

0 commit comments

Comments
 (0)