general: always declare django-mellon if it's available (#23374)

This commit is contained in:
Thomas NOËL 2018-04-24 14:00:26 +02:00 committed by Frédéric Péters
parent 624ab0a51f
commit 0bfbefb853
2 changed files with 1 additions and 3 deletions

View File

@ -7,9 +7,6 @@ DEBUG = False
PROJECT_NAME = 'passerelle'
# SAML2 authentication
INSTALLED_APPS += ('mellon',)
#
# hobotization (multitenant)
#

View File

@ -154,6 +154,7 @@ except ImportError:
mellon = None
if mellon is not None:
INSTALLED_APPS += ('mellon',)
AUTHENTICATION_BACKENDS = (
'mellon.backends.SAMLBackend',
'django.contrib.auth.backends.ModelBackend',