Move to src dir.
[edumed.git] / src / edumed / settings / auth.py
diff --git a/src/edumed/settings/auth.py b/src/edumed/settings/auth.py
new file mode 100644 (file)
index 0000000..35c74c4
--- /dev/null
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+from .apps import INSTALLED_APPS
+
+if 'django_cas' in INSTALLED_APPS:
+    AUTHENTICATION_BACKENDS = (
+        'django.contrib.auth.backends.ModelBackend',
+        'fnpdjango.auth_backends.AttrCASBackend',
+    )