From 0cdf7599a439bf0d46f355f9493dbcfbb6b1785c Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 1 Aug 2015 21:14:49 +0000 Subject: [PATCH] It's only an error not to have STATIC_ROOT available in production mode. - Legacy-Id: 9957 --- ietf/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/checks.py b/ietf/checks.py index 9e651cbb2..d7c9a8c4a 100644 --- a/ietf/checks.py +++ b/ietf/checks.py @@ -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'.",