|
@@ -1,3 +1,4 @@
|
|
|
+# -*- coding: utf-8 -*-
|
|
|
import os
|
|
|
import ldap
|
|
|
from django_auth_ldap.config import LDAPSearch, GroupOfNamesType #, PosixGroupType
|
|
@@ -207,13 +208,12 @@ AUTH_LDAP_USER_FLAGS_BY_GROUP = {
|
|
|
"is_superuser": "cn=admin,ou=groups,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR"
|
|
|
}
|
|
|
|
|
|
-#~ import logging
|
|
|
-#~
|
|
|
-#~ logger = logging.getLogger('django_auth_ldap')
|
|
|
-#~ logger.addHandler(logging.StreamHandler())
|
|
|
-#~ logger.setLevel(logging.DEBUG)
|
|
|
-
|
|
|
|
|
|
+#~ Surcharge les paramètres en utilisant le fichier settings-local.py
|
|
|
+try:
|
|
|
+ from settings_local import *
|
|
|
+except ImportError:
|
|
|
+ pass
|
|
|
|
|
|
|
|
|
|