mirror of
https://github.com/django/django.git
synced 2024-12-28 12:06:22 +00:00
e55d888b66
Backport of 2d7aca3da0
from master
21 lines
580 B
Python
21 lines
580 B
Python
import os
|
|
|
|
from django.utils._os import upath
|
|
|
|
AUTH_MIDDLEWARE_CLASSES = (
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
)
|
|
|
|
AUTH_TEMPLATES = [{
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
'DIRS': [os.path.join(os.path.dirname(upath(__file__)), 'templates')],
|
|
'APP_DIRS': True,
|
|
'OPTIONS': {
|
|
'context_processors': (
|
|
'django.contrib.auth.context_processors.auth',
|
|
'django.contrib.messages.context_processors.messages',
|
|
),
|
|
},
|
|
}]
|