2014-12-18 05:10:57 +08:00
|
|
|
import os
|
|
|
|
|
|
|
|
from django.utils._os import upath
|
|
|
|
|
2015-11-07 23:12:37 +08:00
|
|
|
AUTH_MIDDLEWARE = [
|
2014-12-18 05:10:57 +08:00
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
2015-01-22 00:55:57 +08:00
|
|
|
]
|
2014-12-18 05:10:57 +08:00
|
|
|
|
|
|
|
AUTH_TEMPLATES = [{
|
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
|
|
'DIRS': [os.path.join(os.path.dirname(upath(__file__)), 'templates')],
|
|
|
|
'APP_DIRS': True,
|
|
|
|
'OPTIONS': {
|
2015-01-22 00:55:57 +08:00
|
|
|
'context_processors': [
|
2014-12-18 05:10:57 +08:00
|
|
|
'django.contrib.auth.context_processors.auth',
|
|
|
|
'django.contrib.messages.context_processors.messages',
|
2015-01-22 00:55:57 +08:00
|
|
|
],
|
2014-12-18 05:10:57 +08:00
|
|
|
},
|
|
|
|
}]
|