File diff 2f79a5b24a36 → 3d702d4d7154
testproject/testproject/settings.py
Show inline comments
 
@@ -22,19 +22,20 @@
 
Django settings for testproject project.
 

	
 
For more information on this file, see
 
https://docs.djangoproject.com/en/1.7/topics/settings/
 
https://docs.djangoproject.com/en/1.9/topics/settings/
 

	
 
For the full list of settings and their values, see
 
https://docs.djangoproject.com/en/1.7/ref/settings/
 
https://docs.djangoproject.com/en/1.9/ref/settings/
 
"""
 

	
 
import os
 

	
 
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
 
import os
 
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
 
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.7/howto/deployment/checklist/
 
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
 

	
 
# SECURITY WARNING: keep the secret key used in production secret!
 
SECRET_KEY = '%s-x^wskhxu#5%o)0ck71g7o@7p18has!9_#(h(f@j@$97pcaw'
 
@@ -42,14 +43,12 @@ SECRET_KEY = '%s-x^wskhxu#5%o)0ck71g7o@7
 
# SECURITY WARNING: don't run with debug turned on in production!
 
DEBUG = True
 

	
 
TEMPLATE_DEBUG = True
 

	
 
ALLOWED_HOSTS = []
 

	
 

	
 
# Application definition
 

	
 
INSTALLED_APPS = (
 
INSTALLED_APPS = [
 
    'django.contrib.admin',
 
    'django.contrib.auth',
 
    'django.contrib.contenttypes',
 
@@ -62,9 +61,10 @@ INSTALLED_APPS = (
 
     'braces',
 
     # Better forms, including styling functions.
 
     'crispy_forms',
 
)
 
]
 

	
 
MIDDLEWARE_CLASSES = (
 
MIDDLEWARE_CLASSES = [
 
    'django.middleware.security.SecurityMiddleware',
 
    'django.contrib.sessions.middleware.SessionMiddleware',
 
    'django.middleware.common.CommonMiddleware',
 
    'django.middleware.csrf.CsrfViewMiddleware',
 
@@ -72,15 +72,31 @@ MIDDLEWARE_CLASSES = (
 
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 
    'django.contrib.messages.middleware.MessageMiddleware',
 
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
 
)
 
]
 

	
 
ROOT_URLCONF = 'testproject.urls'
 

	
 
TEMPLATES = [
 
    {
 
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
 
        'DIRS': [],
 
        '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',
 
            ],
 
        },
 
    },
 
]
 

	
 
WSGI_APPLICATION = 'testproject.wsgi.application'
 

	
 

	
 
# Database
 
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
 
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
 

	
 
DATABASES = {
 
    'default': {
 
@@ -89,8 +105,15 @@ DATABASES = {
 
    }
 
}
 

	
 

	
 
# Password validation
 
# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators
 
# Keep empty for test project to make life a bit easier.
 
AUTH_PASSWORD_VALIDATORS = []
 

	
 

	
 
# Internationalization
 
# https://docs.djangoproject.com/en/1.7/topics/i18n/
 
# https://docs.djangoproject.com/en/1.9/topics/i18n/
 

	
 
LANGUAGE_CODE = 'en-us'
 

	
 
@@ -104,7 +127,7 @@ USE_TZ = True
 

	
 

	
 
# Static files (CSS, JavaScript, Images)
 
# https://docs.djangoproject.com/en/1.7/howto/static-files/
 
# https://docs.djangoproject.com/en/1.9/howto/static-files/
 

	
 
STATIC_URL = '/static/'