File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77def 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 ))
You can’t perform that action at this time.
0 commit comments