diff --git a/ietf/checks.py b/ietf/checks.py index c823abf118..f9ad87db70 100644 --- a/ietf/checks.py +++ b/ietf/checks.py @@ -28,26 +28,6 @@ def already_ran(): checks_run.append(name) return False -@checks.register('directories') -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 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. - """ - if already_ran(): - return [] - # - errors = [] - 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'.", - obj=None, - id='datatracker.E001', - )) - return errors @checks.register('files') def check_group_email_aliases_exists(app_configs, **kwargs): diff --git a/ietf/settings.py b/ietf/settings.py index eb5066e974..758f0ca2b4 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -169,8 +169,8 @@ STATIC_URL = "/static/" STATIC_ROOT = os.path.abspath(BASE_DIR + "/../static/") else: - STATIC_URL = "https://www.ietf.org/lib/dt/%s/"%__version__ - STATIC_ROOT = "/a/www/www6s/lib/dt/%s/"%__version__ + STATIC_URL = "https://static.ietf.org/lib/%s/"%__version__ + # Intentionally not setting STATIC_ROOT - see django/django (the default is None) # List of finder classes that know how to find static files in # various locations.