django/tests/auth_tests/settings.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
637 B
Python
Raw Permalink Normal View History

2014-12-18 05:10:57 +08:00
import os
AUTH_MIDDLEWARE = [
2014-12-18 05:10:57 +08:00
"django.contrib.sessions.middleware.SessionMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
]
2014-12-18 05:10:57 +08:00
AUTH_TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [os.path.join(os.path.dirname(__file__), "templates")],
2014-12-18 05:10:57 +08:00
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.request",
2014-12-18 05:10:57 +08:00
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
],
2014-12-18 05:10:57 +08:00
},
}
]