Skip to content
Snippets Groups Projects
Commit 27603d3a authored by Nils Steinger's avatar Nils Steinger Committed by Nadja Geisler
Browse files

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

parent e27b2d16
No related branches found
No related tags found
No related merge requests found
Pipeline #199287 passed
......@@ -180,6 +180,16 @@ BOOTSTRAP5 = {
FONTAWESOME_6_CSS_URL = STATIC_URL + "fontawesomefree/css/all.min.css"
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
COMPRESS_ENABLED = True
COMPRESS_CSS_HASHING_METHOD = 'content'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment