summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-01-31 17:27:58 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2020-07-01 18:02:28 +0200
commite2816be50f30bf8d19eb29634b03136247609141 (patch)
tree2c9441cbda25b215610d8464405479f9dfaeaa56
parent07ca5d7651b37aa1b3c026e00d36664f8477d4dc (diff)
downloadIshtar-e2816be50f30bf8d19eb29634b03136247609141.tar.bz2
Ishtar-e2816be50f30bf8d19eb29634b03136247609141.zip
settings: alternate location for bootstrap_datepicker
-rw-r--r--example_project/settings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index 44e703104..3c3b35859 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -50,8 +50,12 @@ STATICFILES_FINDERS = (
'compressor.finders.CompressorFinder',
)
+BS_STATIC = ROOT_PATH + "../bootstrap_datepicker/static"
+if not os.path.exists(BS_STATIC):
+ BS_STATIC = "/usr/lib/python3/dist-packages/bootstrap_datepicker/"
+
STATICFILES_DIRS = (
- ROOT_PATH + "../bootstrap_datepicker/static",
+ BS_STATIC,
)
ODT_TEMPLATE = ROOT_PATH + "../ishtar_common/static/template.odt"