Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
13 lines
538 B
Diff
13 lines
538 B
Diff
diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py
|
|
index 2de06dd10..00406af48 100644
|
|
--- a/netbox/netbox/settings.py
|
|
+++ b/netbox/netbox/settings.py
|
|
@@ -410,7 +412,7 @@ USE_X_FORWARDED_HOST = True
|
|
X_FRAME_OPTIONS = 'SAMEORIGIN'
|
|
|
|
# Static files (CSS, JavaScript, Images)
|
|
-STATIC_ROOT = BASE_DIR + '/static'
|
|
+STATIC_ROOT = getattr(configuration, 'STATIC_ROOT', os.path.join(BASE_DIR, 'static')).rstrip('/')
|
|
STATIC_URL = f'/{BASE_PATH}static/'
|
|
STATICFILES_DIRS = (
|
|
os.path.join(BASE_DIR, 'project-static', 'dist'),
|