Skip to content

Commit 0cdf759

Browse files
committed
It's only an error not to have STATIC_ROOT available in production mode.
- Legacy-Id: 9957
1 parent 86dd334 commit 0cdf759

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def check_cdn_directory_exists(app_configs, **kwargs):
1212
path will contain the datatracker release version.
1313
"""
1414
errors = []
15-
if not os.path.exists(settings.STATIC_ROOT):
15+
if settings.SERVER_MODE == 'production' and not os.path.exists(settings.STATIC_ROOT):
1616
errors.append(checks.Error(
1717
"The static files directory has not been set up.",
1818
hint="Please run 'ietf/manage.py collectstatic'.",

0 commit comments

Comments
 (0)