diff options
author | hardythe1 | 2015-06-18 14:56:12 +0530 |
---|---|---|
committer | hardythe1 | 2015-06-18 14:56:12 +0530 |
commit | 9262e18938a52144b74fb312d30feda96e356e39 (patch) | |
tree | 776a6107236aa760e5d9154058bb3fd2a845d8e6 /scipy2015/settings.py | |
parent | 91628a4a3ded10ca894758d40d178fa283d1e19f (diff) | |
download | SciPy2015-9262e18938a52144b74fb312d30feda96e356e39.tar.gz SciPy2015-9262e18938a52144b74fb312d30feda96e356e39.tar.bz2 SciPy2015-9262e18938a52144b74fb312d30feda96e356e39.zip |
port to django 1.6
Diffstat (limited to 'scipy2015/settings.py')
-rw-r--r-- | scipy2015/settings.py | 44 |
1 files changed, 14 insertions, 30 deletions
diff --git a/scipy2015/settings.py b/scipy2015/settings.py index 3582636..1186d26 100644 --- a/scipy2015/settings.py +++ b/scipy2015/settings.py @@ -1,30 +1,29 @@ """ Django settings for scipy2015 project. -Generated by 'django-admin startproject' using Django 1.8.2. - For more information on this file, see -https://docs.djangoproject.com/en/1.8/topics/settings/ +https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.8/ref/settings/ +https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os - -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ +# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = '=#zh5&820@y_cjzo13qpuwpbqsj4$=q9r4bvphy5(jvh19i2k)' +SECRET_KEY = 'w81ia+6)sak!)t@kv=@x267y78ceh4iu2c@o@2#8+h$kua3e9a' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True +TEMPLATE_DEBUG = True + ALLOWED_HOSTS = [] @@ -45,35 +44,21 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', - 'django.middleware.security.SecurityMiddleware', ) -ROOT_URLCONF = 'scipy2015.urls' +TEMPLATE_DIRS = ( + os.path.join(BASE_DIR, 'templates'), +) -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [os.path.join(BASE_DIR, 'websites/templates')], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] +ROOT_URLCONF = 'scipy2015.urls' WSGI_APPLICATION = 'scipy2015.wsgi.application' # Database -# https://docs.djangoproject.com/en/1.8/ref/settings/#databases +# https://docs.djangoproject.com/en/1.6/ref/settings/#databases DATABASES = { 'default': { @@ -82,9 +67,8 @@ DATABASES = { } } - # Internationalization -# https://docs.djangoproject.com/en/1.8/topics/i18n/ +# https://docs.djangoproject.com/en/1.6/topics/i18n/ LANGUAGE_CODE = 'en-us' @@ -98,6 +82,6 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.8/howto/static-files/ +# https://docs.djangoproject.com/en/1.6/howto/static-files/ STATIC_URL = '/static/' |