From 1dff1d0b4bae3827223314d19fc2009dbc2c5706 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Sun, 4 May 2014 14:21:59 +0800 Subject: * added 'bootstrap-3.1.1' to static * updated 'settings' to serve bootstrap from local ('respond.js' required local css, otherwise extra configuration requires.) --- django_skaschool/settings.py | 5 ++++- django_skaschool/settings_mysql.py | 5 ++++- django_skaschool/settings_production.py | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) (limited to 'django_skaschool') diff --git a/django_skaschool/settings.py b/django_skaschool/settings.py index 9b4c779..9d6cb66 100644 --- a/django_skaschool/settings.py +++ b/django_skaschool/settings.py @@ -153,9 +153,12 @@ from settings_email import * ################################################# ## bootstrap3 +# Serve bootstrap3 from local. +# Otherwise 'respond.js' requires extra configuration with css on CDN. BOOTSTRAP3 = { 'jquery_url': '//code.jquery.com/jquery-1.11.0.min.js', - 'base_url': '//netdna.bootstrapcdn.com/bootstrap/3.1.1/', + #'base_url': '//netdna.bootstrapcdn.com/bootstrap/3.1.1/', + 'base_url': '/static/third-party/bootstrap/3.1.1/', 'css_url': None, 'theme_url': None, 'javascript_url': None, diff --git a/django_skaschool/settings_mysql.py b/django_skaschool/settings_mysql.py index e22444b..f5b1977 100644 --- a/django_skaschool/settings_mysql.py +++ b/django_skaschool/settings_mysql.py @@ -163,9 +163,12 @@ from settings_email import * ################################################# ## bootstrap3 +# Serve bootstrap3 from local. +# Otherwise 'respond.js' requires extra configuration with css on CDN. BOOTSTRAP3 = { 'jquery_url': '//code.jquery.com/jquery-1.11.0.min.js', - 'base_url': '//netdna.bootstrapcdn.com/bootstrap/3.1.1/', + #'base_url': '//netdna.bootstrapcdn.com/bootstrap/3.1.1/', + 'base_url': '/static/third-party/bootstrap/3.1.1/', 'css_url': None, 'theme_url': None, 'javascript_url': None, diff --git a/django_skaschool/settings_production.py b/django_skaschool/settings_production.py index 4c1533e..92a4528 100644 --- a/django_skaschool/settings_production.py +++ b/django_skaschool/settings_production.py @@ -176,9 +176,12 @@ MANAGERS = ADMINS ################################################# ## bootstrap3 +# Serve bootstrap3 from local. +# Otherwise 'respond.js' requires extra configuration with css on CDN. BOOTSTRAP3 = { 'jquery_url': '//code.jquery.com/jquery-1.11.0.min.js', - 'base_url': '//netdna.bootstrapcdn.com/bootstrap/3.1.1/', + #'base_url': '//netdna.bootstrapcdn.com/bootstrap/3.1.1/', + 'base_url': '/static/third-party/bootstrap/3.1.1/', 'css_url': None, 'theme_url': None, 'javascript_url': None, -- cgit v1.2.2