|
100 | 100 |
|
101 | 101 | # Absolute path to the directory static files should be collected to. |
102 | 102 | # Example: "/var/www/example.com/static/" |
103 | | -STATIC_ROOT = os.path.abspath(BASE_DIR + "/../static/lib/") |
104 | 103 |
|
| 104 | +CDN_ROOT = "/a/www/www6s/lib/dt" |
105 | 105 |
|
106 | 106 | SERVE_CDN_FILES_LOCALLY_IN_DEV_MODE = True |
107 | 107 |
|
108 | 108 | # URL to use when referring to static files located in STATIC_ROOT. |
109 | 109 | if SERVER_MODE != 'production' and SERVE_CDN_FILES_LOCALLY_IN_DEV_MODE: |
110 | | - STATIC_URL = "/lib/" |
111 | | - STATIC_CDN_PATH = STATIC_ROOT |
| 110 | + STATIC_URL = "/static/" |
| 111 | + STATIC_ROOT = os.path.abspath(BASE_DIR + "/../static/") |
112 | 112 | else: |
113 | 113 | STATIC_URL = "https://www.ietf.org/lib/dt/%s/"%__version__ |
114 | | - STATIC_CDN_PATH = "/a/www/www6s/lib/dt/%s/"%__version__ |
| 114 | + STATIC_ROOT = CDN_ROOT + "%s/"%__version__ |
115 | 115 |
|
116 | 116 | # Destination for components handled by djangobower |
117 | | -COMPONENT_ROOT = STATIC_ROOT |
| 117 | +COMPONENT_ROOT = BASE_DIR + "/externals/static/" |
| 118 | +COMPONENT_URL = STATIC_URL |
118 | 119 |
|
119 | 120 | # List of finder classes that know how to find static files in |
120 | 121 | # various locations. |
|
124 | 125 | 'ietf.utils.bower_storage.BowerStorageFinder', |
125 | 126 | ) |
126 | 127 |
|
127 | | - |
128 | | -# Absolute path to the files not served through the staticfiles app |
129 | | -STATIC_LOCAL = os.path.abspath(BASE_DIR + "/../static/") |
130 | | - |
131 | | - |
132 | 128 | WSGI_APPLICATION = "ietf.wsgi.application" |
133 | 129 |
|
134 | 130 | AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', ) |
@@ -222,14 +218,14 @@ def skip_unreadable_post(record): |
222 | 218 | 'ietf.context_processors.server_mode', |
223 | 219 | 'ietf.context_processors.revision_info', |
224 | 220 | 'ietf.secr.context_processors.secr_revision_info', |
225 | | - 'ietf.secr.context_processors.static', |
226 | 221 | 'ietf.context_processors.rfcdiff_base_url', |
227 | 222 | ) |
228 | 223 |
|
229 | | -# Additional locations of static files |
| 224 | +# Additional locations of static files (in addition to each app's static/ dir) |
230 | 225 | STATICFILES_DIRS = ( |
231 | 226 | os.path.join(BASE_DIR, 'static'), |
232 | | - os.path.join(BASE_DIR, '../bootstrap/static'), |
| 227 | + os.path.join(BASE_DIR, 'secr/static'), |
| 228 | + os.path.join(BASE_DIR, 'externals/static'), |
233 | 229 | ) |
234 | 230 |
|
235 | 231 | INSTALLED_APPS = ( |
@@ -359,9 +355,9 @@ def skip_unreadable_post(record): |
359 | 355 | if len(TEST_CODE_COVERAGE_CHECKER.collector._collectors) == 0: |
360 | 356 | TEST_CODE_COVERAGE_CHECKER.start() |
361 | 357 |
|
362 | | -TEST_CODE_COVERAGE_REPORT_PATH = "static/coverage/" |
| 358 | +TEST_CODE_COVERAGE_REPORT_PATH = "coverage/" |
363 | 359 | TEST_CODE_COVERAGE_REPORT_URL = os.path.join(STATIC_URL, TEST_CODE_COVERAGE_REPORT_PATH, "index.html") |
364 | | -TEST_CODE_COVERAGE_REPORT_DIR = os.path.join(STATIC_ROOT, TEST_CODE_COVERAGE_REPORT_PATH) |
| 360 | +TEST_CODE_COVERAGE_REPORT_DIR = os.path.join(BASE_DIR, "static", TEST_CODE_COVERAGE_REPORT_PATH) |
365 | 361 | TEST_CODE_COVERAGE_REPORT_FILE = os.path.join(TEST_CODE_COVERAGE_REPORT_DIR, "index.html") |
366 | 362 |
|
367 | 363 | # WG Chair configuration |
@@ -527,7 +523,6 @@ def skip_unreadable_post(record): |
527 | 523 | SECR_INTERIM_LISTING_DIR = '/a/www/www6/meeting/interim' |
528 | 524 | SECR_MAX_UPLOAD_SIZE = 40960000 |
529 | 525 | SECR_PROCEEDINGS_DIR = '/a/www/www6s/proceedings/' |
530 | | -SECR_STATIC_URL = '/secretariat/' |
531 | 526 | SECR_PPT2PDF_COMMAND = ['/usr/bin/soffice','--headless','--convert-to','pdf','--outdir'] |
532 | 527 |
|
533 | 528 | USE_ETAGS=True |
|
0 commit comments