Skip to content

Commit d37aee7

Browse files
committed
Updated ietf/checks.py to use STATIC_ROOT instead the CDN_STATIC_PATH used with the split-static setup.
- Legacy-Id: 9946
1 parent 9cb8f65 commit d37aee7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

ietf/checks.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
def check_cdn_directory_exists(app_configs, **kwargs):
88
"""This checks that the path from which the CDN will serve static files for
99
this version of the datatracker actually exists. In development and test
10-
mode this will normally be just STATIC_ROOT, but in production it will be
11-
a symlink to STATIC_ROOT, with a path containing the datatracker release
12-
version.
10+
mode STATIC_ROOT will normally be just static/, but in production it will be
11+
set to a different part of the file system which is served via CDN, and the
12+
path will contain the datatracker release version.
1313
"""
1414
errors = []
15-
if not os.path.exists(settings.STATIC_CDN_PATH):
15+
if not os.path.exists(settings.STATIC_ROOT):
1616
errors.append(checks.Error(
17-
'The CDN static files path has not been set up',
18-
hint='Set up this symlink:\n\t%s -> %s' % (settings.STATIC_CDN_PATH, settings.STATIC_ROOT),
17+
"The static files directory has not been set up.",
18+
hint="Please run 'ietf/manage.py collectstatic'.",
1919
obj=None,
2020
id='datatracker.E001',
2121
))

0 commit comments

Comments
 (0)