It's only an error not to have STATIC_ROOT available in production mode.
- Legacy-Id: 9957
This commit is contained in:
parent
86dd334355
commit
0cdf7599a4
|
@ -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'.",
|
||||
|
|
Loading…
Reference in a new issue