From 6feada89e64e4f283e02a9c512995a722f0276fc Mon Sep 17 00:00:00 2001 From: dzhuang Date: Sun, 31 Jan 2016 01:50:44 +0800 Subject: [PATCH] local select2 'static' resources instead of from CDN --- relate/settings.py | 6 ++++++ requirements.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/relate/settings.py b/relate/settings.py index b1a65a8c..d9544770 100644 --- a/relate/settings.py +++ b/relate/settings.py @@ -113,6 +113,7 @@ BOWER_INSTALLED_APPS = ( "datatables.net-fixedcolumns", "datatables.net-fixedcolumns-bs", "jstree", + "select2", "select2-bootstrap-css", ) @@ -202,6 +203,11 @@ STATIC_URL = '/static/' STATIC_ROOT = join(BASE_DIR, "static") +# local select2 'static' resources instead of from CDN +# https://goo.gl/dY6xf7 +SELECT2_JS = 'select2/dist/js/select2.min.js' +SELECT2_CSS = 'select2/dist/css/select2.css' + # }}} SESSION_COOKIE_NAME = 'relate_sessionid' diff --git a/requirements.txt b/requirements.txt index 095cc3dc..92e26ff7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -79,7 +79,7 @@ celery django-celery # For searchable select forms -django_select2==5.0.3 +django_select2>=5.5.0 # Custom user migration created using # https://bitbucket.org/spookylukey/django_custom_user_migration -- GitLab