|
10 | 10 |
|
11 | 11 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
12 | 12 | import os |
13 | | -BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
14 | 13 |
|
| 14 | +BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
15 | 15 |
|
16 | 16 | # Quick-start development settings - unsuitable for production |
17 | 17 | # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ |
|
22 | 22 | # SECURITY WARNING: don't run with debug turned on in production! |
23 | 23 | DEBUG = True |
24 | 24 |
|
25 | | -TEMPLATE_DEBUG = True |
26 | | - |
27 | 25 | ALLOWED_HOSTS = [] |
28 | 26 |
|
29 | | - |
30 | 27 | # Application definition |
31 | 28 |
|
32 | 29 | INSTALLED_APPS = ( |
|
38 | 35 | 'django.contrib.staticfiles', |
39 | 36 | ) |
40 | 37 |
|
41 | | -MIDDLEWARE_CLASSES = ( |
| 38 | +MIDDLEWARE = ( |
42 | 39 | 'django.contrib.sessions.middleware.SessionMiddleware', |
43 | 40 | 'django.middleware.common.CommonMiddleware', |
44 | 41 | # 'django.middleware.csrf.CsrfViewMiddleware', |
|
51 | 48 |
|
52 | 49 | WSGI_APPLICATION = 'demo.wsgi.application' |
53 | 50 |
|
54 | | - |
55 | 51 | # Database |
56 | 52 | # https://docs.djangoproject.com/en/1.6/ref/settings/#databases |
57 | 53 |
|
|
75 | 71 |
|
76 | 72 | USE_TZ = True |
77 | 73 |
|
78 | | - |
79 | | -# Static files (CSS, JavaScript, Images) |
80 | | -# https://docs.djangoproject.com/en/1.6/howto/static-files/ |
81 | | - |
82 | 74 | STATIC_URL = '/static/' |
83 | 75 |
|
84 | 76 | SAML_FOLDER = os.path.join(BASE_DIR, 'saml') |
85 | 77 |
|
86 | 78 | SESSION_ENGINE = 'django.contrib.sessions.backends.file' |
87 | 79 |
|
88 | | -TEMPLATE_DIRS = ( |
89 | | - os.path.join(BASE_DIR, 'templates'), |
90 | | -) |
| 80 | +TEMPLATES = [ |
| 81 | + { |
| 82 | + 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
| 83 | + 'DIRS': [os.path.join(BASE_DIR, 'templates')] |
| 84 | + , |
| 85 | + 'APP_DIRS': True, |
| 86 | + 'OPTIONS': { |
| 87 | + 'debug': True, |
| 88 | + 'context_processors': [ |
| 89 | + 'django.template.context_processors.debug', |
| 90 | + 'django.template.context_processors.request', |
| 91 | + 'django.contrib.auth.context_processors.auth', |
| 92 | + 'django.contrib.messages.context_processors.messages', |
| 93 | + ], |
| 94 | + }, |
| 95 | + }, |
| 96 | +] |
0 commit comments