0
0
mirror of https://github.com/django/django.git synced 2024-11-28 10:48:32 +01:00
django/tests/auth_tests/settings.py

21 lines
580 B
Python
Raw Normal View History

2014-12-17 22:10:57 +01:00
import os
from django.utils._os import upath
AUTH_MIDDLEWARE_CLASSES = [
2014-12-17 22:10:57 +01:00
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
]
2014-12-17 22:10:57 +01:00
AUTH_TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(os.path.dirname(upath(__file__)), 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
2014-12-17 22:10:57 +01:00
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
2014-12-17 22:10:57 +01:00
},
}]