AUTHENTICATION_BACKENDS = [ | AUTHENTICATION_BACKENDS = [ | ||||
'django.contrib.auth.backends.ModelBackend', | 'django.contrib.auth.backends.ModelBackend', | ||||
] | ] | ||||
print(" --- Development stage --- ") | |||||
else: | else: | ||||
AUTHENTICATION_BACKENDS = [ | AUTHENTICATION_BACKENDS = [ | ||||
'django.contrib.auth.backends.ModelBackend', | 'django.contrib.auth.backends.ModelBackend', | ||||
'medinf.ldap_backend.LdapBackend', | 'medinf.ldap_backend.LdapBackend', | ||||
] | |||||
] | |||||
print(" --- Live stage --- ") |