diff --git a/config.py b/config.py index 420f32e..327fb39 100644 --- a/config.py +++ b/config.py @@ -133,3 +133,8 @@ AUTHENTICATION_BACKENDS = ('authentic2.backends.LDAPBackend',) # bypass authentic2 warning: "DEFAULT_FROM_EMAIL must be customized" DEFAULT_FROM_EMAIL = 'root@localhost' + +if os.environ.get('DEBUG') == '1': + DEBUG = True + for logger in LOGGING['loggers'].values(): + logger['level'] = 'DEBUG' diff --git a/supann.conf b/supann.conf index 23b7418..61d4df7 100644 --- a/supann.conf +++ b/supann.conf @@ -1,5 +1,9 @@ # Fichier /etc/default/authentic2 # +# Activer le mode DEBUG +# +# export DEBUG=1 +# # Configuration du LDAP # # URL de l'annuaire LDAP