From 1ab22c9e8618c61e67e275acc2b657ff730b6b6c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Benjamin=20H=C3=A4ttasch?=
 <benjamin.haettasch@cs.tu-darmstadt.de>
Date: Wed, 16 Oct 2019 23:19:18 +0200
Subject: [PATCH] Use generic location for bootstrap.css and other common
 static files

---
 AKPlanning/settings.py                                       | 5 ++++-
 .../AKDashboard => static_common/common}/css/bootstrap.css   | 0
 2 files changed, 4 insertions(+), 1 deletion(-)
 rename {AKDashboard/static/AKDashboard => static_common/common}/css/bootstrap.css (100%)

diff --git a/AKPlanning/settings.py b/AKPlanning/settings.py
index 4f7f6f95..8b8ae323 100644
--- a/AKPlanning/settings.py
+++ b/AKPlanning/settings.py
@@ -121,12 +121,15 @@ USE_TZ = True
 
 STATIC_URL = '/static/'
 STATIC_ROOT = os.path.join(BASE_DIR, 'static')
+STATICFILES_DIRS = (
+    'static_common',
+)
 
 # Settings for Bootstrap
 BOOTSTRAP4 = {
     # Use custom CSS
     "css_url": {
-        "href": STATIC_URL + "AKDashboard/css/bootstrap.css",
+        "href": STATIC_URL + "common/css/bootstrap.css",
     },
 }
 
diff --git a/AKDashboard/static/AKDashboard/css/bootstrap.css b/static_common/common/css/bootstrap.css
similarity index 100%
rename from AKDashboard/static/AKDashboard/css/bootstrap.css
rename to static_common/common/css/bootstrap.css
-- 
GitLab