summaryrefslogtreecommitdiff
path: root/tests/auth_tests/settings.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-10 09:17:08 -0500
committerTim Graham <timograham@gmail.com>2015-02-11 10:19:22 -0500
commit2d7aca3da0a46c09e9c70ebdb56ed340691a999f (patch)
treeac7c041d73e922d8e83a1944d56a27138875fe8e /tests/auth_tests/settings.py
parent8192a164defa24d75672e6b10cec650489b8c748 (diff)
Moved contrib.auth tests out of contrib.
Diffstat (limited to 'tests/auth_tests/settings.py')
-rw-r--r--tests/auth_tests/settings.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auth_tests/settings.py b/tests/auth_tests/settings.py
new file mode 100644
index 0000000000..7da6144d4b
--- /dev/null
+++ b/tests/auth_tests/settings.py
@@ -0,0 +1,20 @@
+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',
+ ],
+ },
+}]