Skip to content
Snippets Groups Projects
Commit 653c3ca8 authored by Nils Steinger's avatar Nils Steinger
Browse files

Configure django-bootstrap-datepicker-plus to use local files instead of CDN

parent 4f156642
No related branches found
No related tags found
No related merge requests found
Pipeline #198380 passed
...@@ -179,6 +179,16 @@ BOOTSTRAP5 = { ...@@ -179,6 +179,16 @@ BOOTSTRAP5 = {
FONTAWESOME_6_CSS_URL = STATIC_URL + "fontawesomefree/css/all.min.css" FONTAWESOME_6_CSS_URL = STATIC_URL + "fontawesomefree/css/all.min.css"
FONTAWESOME_6_PREFIX = "fa" FONTAWESOME_6_PREFIX = "fa"
# Settings for monim67/django-bootstrap-datepicker-plus
BOOTSTRAP_DATEPICKER_PLUS = {
# defaults: https://github.com/monim67/django-bootstrap-datepicker-plus/blob/5.0.0/src/bootstrap_datepicker_plus/settings.py#L16
"datetimepicker_js_url": "common/vendor/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js",
"datetimepicker_css_url": "common/vendor/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css",
"momentjs_url": "common/vendor/moment/moment-with-locales.js",
"bootstrap_icon_css_url": "common/vendor/bootstrap-icons/bootstrap-icons.css",
"app_static_url": "common/vendor/django-bootstrap-datepicker-plus/src/bootstrap_datepicker_plus/static/bootstrap_datepicker_plus/",
}
# Compressor and minifier config # Compressor and minifier config
COMPRESS_ENABLED = True COMPRESS_ENABLED = True
COMPRESS_CSS_HASHING_METHOD = 'content' COMPRESS_CSS_HASHING_METHOD = 'content'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment