It's only an error not to have STATIC_ROOT available in production mode.

- Legacy-Id: 9957
This commit is contained in:
Henrik Levkowetz 2015-08-01 21:14:49 +00:00
parent 86dd334355
commit 0cdf7599a4

View file

@ -12,7 +12,7 @@ def check_cdn_directory_exists(app_configs, **kwargs):
path will contain the datatracker release version.
"""
errors = []
if not os.path.exists(settings.STATIC_ROOT):
if settings.SERVER_MODE == 'production' and not os.path.exists(settings.STATIC_ROOT):
errors.append(checks.Error(
"The static files directory has not been set up.",
hint="Please run 'ietf/manage.py collectstatic'.",