X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=djsite%2Fsettings_common.py;h=6474c2b24cf9a56bc2024830e46f03cf815b8a3a;hb=24bbf1b4cdcd0c0192ca9df3749f7a3b8d3ed211;hp=6eed00b5bb133fd6ee78a3a8a47d51314d8087b9;hpb=6d29db35c714fe52854a5b2e4002403150da1954;p=djsite.git diff --git a/djsite/settings_common.py b/djsite/settings_common.py index 6eed00b..6474c2b 100644 --- a/djsite/settings_common.py +++ b/djsite/settings_common.py @@ -15,7 +15,6 @@ import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ @@ -34,9 +33,13 @@ INSTALLED_APPS = ( 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'ajax_select', 'jquery', +# 'jquery_ui', + 'formtools', 'tinymce', 'quotes', + 'quotes_beta', ) MIDDLEWARE_CLASSES = ( @@ -79,7 +82,7 @@ WSGI_APPLICATION = 'djsite.wsgi.application' # Internationalization # https://docs.djangoproject.com/en/1.8/topics/i18n/ -LANGUAGE_CODE = 'en-us' +LANGUAGE_CODE = 'en-GB' TIME_ZONE = 'Europe/London' @@ -89,6 +92,11 @@ USE_L10N = True USE_TZ = True +# DATE_INPUT_FORMATS = [ +# "%d/%m/%Y", # 12/11/2016 for 12th Nov 2016 +# "%Y-%m-%d", # 2016-11-12 for 12th Nov 2016 +# ] + # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.8/howto/static-files/ # STATIC_URL overridden in settings-{dev,prod}.py @@ -99,5 +107,11 @@ TINYMCE_DEFAULT_CONFIG = { 'theme_advanced_buttons2' : '', 'theme_advanced_buttons3' : "", 'plugins': 'table', - 'valid_elements': 'a|b|strong|u|i|em|ul|ol|li|p|br' + 'valid_elements': 'a[href],b,strong,u,i,em,ul,ol,li,p,br' } + +# If jQuery or jQuery.ui are not already loaded on the page, then +# these will be loaded from CDN. +# If you want to prevent this and load your own then set AJAX_SELECT_BOOTSTRAP + +AJAX_SELECT_BOOTSTRAP = True