From e2816be50f30bf8d19eb29634b03136247609141 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 31 Jan 2020 17:27:58 +0100 Subject: settings: alternate location for bootstrap_datepicker --- example_project/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'example_project') 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" -- cgit v1.2.3