Add DEBUG key to supann.conf

This commit is contained in:
Benjamin Dauvergne 2015-04-02 15:59:10 +02:00
parent ac3bfeb330
commit 8796d961f0
2 changed files with 9 additions and 0 deletions

View File

@ -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'

View File

@ -1,5 +1,9 @@
# Fichier /etc/default/authentic2
#
# Activer le mode DEBUG
#
# export DEBUG=1
#
# Configuration du LDAP
#
# URL de l'annuaire LDAP