8 |
8 |
For the full list of settings and their values, see
|
9 |
9 |
https://docs.djangoproject.com/en/1.7/ref/settings/
|
10 |
10 |
"""
|
11 |
|
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS, STATICFILES_FINDERS
|
|
11 |
from django.conf.global_settings import STATICFILES_FINDERS
|
12 |
12 |
|
13 |
13 |
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
14 |
14 |
import os
|
... | ... | |
24 |
24 |
# SECURITY WARNING: don't run with debug turned on in production!
|
25 |
25 |
DEBUG = True
|
26 |
26 |
|
27 |
|
TEMPLATE_DEBUG = True
|
28 |
|
|
29 |
27 |
ALLOWED_HOSTS = []
|
30 |
28 |
|
31 |
29 |
|
... | ... | |
54 |
52 |
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
55 |
53 |
)
|
56 |
54 |
|
57 |
|
TEMPLATE_CONTEXT_PROCESSORS += (
|
58 |
|
'django.core.context_processors.request',
|
59 |
|
)
|
|
55 |
# Templates
|
|
56 |
TEMPLATES = [
|
|
57 |
{
|
|
58 |
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
59 |
'DIRS': [
|
|
60 |
os.path.join(BASE_DIR, 'fargo', 'templates'),
|
|
61 |
],
|
|
62 |
'APP_DIRS': True,
|
|
63 |
'OPTIONS': {
|
|
64 |
'context_processors': [
|
|
65 |
'django.contrib.auth.context_processors.auth',
|
|
66 |
'django.template.context_processors.debug',
|
|
67 |
'django.template.context_processors.i18n',
|
|
68 |
'django.template.context_processors.media',
|
|
69 |
'django.template.context_processors.request',
|
|
70 |
'django.template.context_processors.static',
|
|
71 |
'django.template.context_processors.tz',
|
|
72 |
'django.contrib.messages.context_processors.messages',
|
|
73 |
],
|
|
74 |
},
|
|
75 |
},
|
|
76 |
]
|
|
77 |
|
60 |
78 |
|
61 |
79 |
ROOT_URLCONF = 'fargo.urls'
|
62 |
80 |
|
... | ... | |
90 |
108 |
|
91 |
109 |
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'fargo', 'static')]
|
92 |
110 |
|
93 |
|
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'fargo', 'templates')]
|
94 |
|
|
95 |
111 |
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
96 |
112 |
|
97 |
113 |
LOCALE_PATHS = [os.path.join(BASE_DIR, 'fargo', 'locale')]
|
98 |
|
-
|