Skip to content

Commit fc2673c

Browse files
committed
refactor: use statics.ietf.org for all statics
1 parent 0ba7eaf commit fc2673c

2 files changed

Lines changed: 2 additions & 22 deletions

File tree

ietf/checks.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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')
5333
def check_group_email_aliases_exists(app_configs, **kwargs):

ietf/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@
169169
STATIC_URL = "/static/"
170170
STATIC_ROOT = os.path.abspath(BASE_DIR + "/../static/")
171171
else:
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.

0 commit comments

Comments
 (0)