X-Git-Url: https://git.mdrn.pl/fnp-django-template.git/blobdiff_plain/94e4264e4ac4f8f34d2975f26a0337e6f2c35027..87776dc1caec95a6eaaf011a7356e676722a11a3:/project_name/settings/auth.py diff --git a/project_name/settings/auth.py b/project_name/settings/auth.py new file mode 100644 index 0000000..91b062e --- /dev/null +++ b/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', + )