From d37aee7ae219a6b4eae5b7e835a79e8d0f974955 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 1 Aug 2015 14:55:47 +0000 Subject: [PATCH] Updated ietf/checks.py to use STATIC_ROOT instead the CDN_STATIC_PATH used with the split-static setup. - Legacy-Id: 9946 --- ietf/checks.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ietf/checks.py b/ietf/checks.py index 4f9c789ef..9e651cbb2 100644 --- a/ietf/checks.py +++ b/ietf/checks.py @@ -7,15 +7,15 @@ from django.core import checks def check_cdn_directory_exists(app_configs, **kwargs): """This checks that the path from which the CDN will serve static files for this version of the datatracker actually exists. In development and test - mode this will normally be just STATIC_ROOT, but in production it will be - a symlink to STATIC_ROOT, with a path containing the datatracker release - version. + mode STATIC_ROOT will normally be just static/, but in production it will be + set to a different part of the file system which is served via CDN, and the + path will contain the datatracker release version. """ errors = [] - if not os.path.exists(settings.STATIC_CDN_PATH): + if not os.path.exists(settings.STATIC_ROOT): errors.append(checks.Error( - 'The CDN static files path has not been set up', - hint='Set up this symlink:\n\t%s -> %s' % (settings.STATIC_CDN_PATH, settings.STATIC_ROOT), + "The static files directory has not been set up.", + hint="Please run 'ietf/manage.py collectstatic'.", obj=None, id='datatracker.E001', ))