File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,26 +28,6 @@ def already_ran():
2828 checks_run .append (name )
2929 return False
3030
31- @checks .register ('directories' )
32- def check_cdn_directory_exists (app_configs , ** kwargs ):
33- """This checks that the path from which the CDN will serve static files for
34- this version of the datatracker actually exists. In development and test
35- mode STATIC_ROOT will normally be just static/, but in production it will be
36- set to a different part of the file system which is served via CDN, and the
37- path will contain the datatracker release version.
38- """
39- if already_ran ():
40- return []
41- #
42- errors = []
43- if settings .SERVER_MODE == 'production' and not os .path .exists (settings .STATIC_ROOT ):
44- errors .append (checks .Error (
45- "The static files directory has not been set up." ,
46- hint = "Please run 'ietf/manage.py collectstatic'." ,
47- obj = None ,
48- id = 'datatracker.E001' ,
49- ))
50- return errors
5131
5232@checks .register ('files' )
5333def check_group_email_aliases_exists (app_configs , ** kwargs ):
Original file line number Diff line number Diff line change 169169 STATIC_URL = "/static/"
170170 STATIC_ROOT = os .path .abspath (BASE_DIR + "/../static/" )
171171else :
172- STATIC_URL = "https://www .ietf.org/lib/dt /%s/" % __version__
173- STATIC_ROOT = "/a/www/www6s/lib/dt/%s/" % __version__
172+ STATIC_URL = "https://static .ietf.org/lib/%s/" % __version__
173+ STATIC_ROOT = None
174174
175175# List of finder classes that know how to find static files in
176176# various locations.
You can’t perform that action at this time.
0 commit comments