fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Separate src dir.
[fnpdjango.git]
/
src
/
project_name
/
settings
/
auth.py
diff --git a/src/project_name/settings/auth.py
b/src/project_name/settings/auth.py
new file mode 100644
(file)
index 0000000..
91b062e
--- /dev/null
+++ b/
src/project_name/settings/auth.py
@@ -0,0
+1,8
@@
+from . import INSTALLED_APPS
+
+
+if 'django_cas' in INSTALLED_APPS:
+ AUTHENTICATION_BACKENDS = (
+ 'django.contrib.auth.backends.ModelBackend',
+ 'django_cas.backends.CASBackend',
+ )