Show More
@@ -95,19 +95,26 b' else:' | |||||
95 | # Make this unique, and don't share it with anybody. |
|
95 | # Make this unique, and don't share it with anybody. | |
96 | SECRET_KEY = '@1rc$o(7=tt#kd+4s$u6wchm**z^)4x90)7f6z(i&55@o11*8o' |
|
96 | SECRET_KEY = '@1rc$o(7=tt#kd+4s$u6wchm**z^)4x90)7f6z(i&55@o11*8o' | |
97 |
|
97 | |||
98 | # List of callables that know how to import templates from various sources. |
|
98 | TEMPLATES = [{ | |
99 | TEMPLATE_LOADERS = ( |
|
99 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', | |
100 | 'django.template.loaders.filesystem.Loader', |
|
100 | 'DIRS': ['templates'], | |
101 | 'django.template.loaders.app_directories.Loader', |
|
101 | 'OPTIONS': { | |
102 | ) |
|
102 | 'loaders': [ | |
|
103 | ('django.template.loaders.cached.Loader', [ | |||
|
104 | 'django.template.loaders.filesystem.Loader', | |||
|
105 | 'django.template.loaders.app_directories.Loader', | |||
|
106 | ]), | |||
|
107 | ], | |||
|
108 | 'context_processors': [ | |||
|
109 | 'django.core.context_processors.media', | |||
|
110 | 'django.core.context_processors.static', | |||
|
111 | 'django.core.context_processors.request', | |||
|
112 | 'django.contrib.auth.context_processors.auth', | |||
|
113 | 'boards.context_processors.user_and_ui_processor', | |||
|
114 | ], | |||
|
115 | }, | |||
|
116 | }] | |||
103 |
|
117 | |||
104 | TEMPLATE_CONTEXT_PROCESSORS = ( |
|
|||
105 | 'django.core.context_processors.media', |
|
|||
106 | 'django.core.context_processors.static', |
|
|||
107 | 'django.core.context_processors.request', |
|
|||
108 | 'django.contrib.auth.context_processors.auth', |
|
|||
109 | 'boards.context_processors.user_and_ui_processor', |
|
|||
110 | ) |
|
|||
111 |
|
118 | |||
112 | MIDDLEWARE_CLASSES = [ |
|
119 | MIDDLEWARE_CLASSES = [ | |
113 | 'django.middleware.http.ConditionalGetMiddleware', |
|
120 | 'django.middleware.http.ConditionalGetMiddleware', | |
@@ -125,13 +132,6 b" ROOT_URLCONF = 'neboard.urls'" | |||||
125 | # Python dotted path to the WSGI application used by Django's runserver. |
|
132 | # Python dotted path to the WSGI application used by Django's runserver. | |
126 | WSGI_APPLICATION = 'neboard.wsgi.application' |
|
133 | WSGI_APPLICATION = 'neboard.wsgi.application' | |
127 |
|
134 | |||
128 | TEMPLATE_DIRS = ( |
|
|||
129 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
|
|||
130 | # Always use forward slashes, even on Windows. |
|
|||
131 | # Don't forget to use absolute paths, not relative paths. |
|
|||
132 | 'templates', |
|
|||
133 | ) |
|
|||
134 |
|
||||
135 | INSTALLED_APPS = ( |
|
135 | INSTALLED_APPS = ( | |
136 | 'django.contrib.auth', |
|
136 | 'django.contrib.auth', | |
137 | 'django.contrib.contenttypes', |
|
137 | 'django.contrib.contenttypes', |
General Comments 0
You need to be logged in to leave comments.
Login now