From 6d65111ed7ce18f65c570db772eaf3d598a1d9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Fri, 21 Mar 2014 10:27:45 +0100 Subject: [PATCH] settings.py: re-enable mail_admins --- compte_agglo_montpellier/settings.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/compte_agglo_montpellier/settings.py b/compte_agglo_montpellier/settings.py index 6149ca2..8f29bca 100644 --- a/compte_agglo_montpellier/settings.py +++ b/compte_agglo_montpellier/settings.py @@ -139,6 +139,7 @@ import os apps_dir = os.path.join(os.path.dirname(__file__), 'apps') if apps_dir not in sys.path: sys.path.append(apps_dir) + import portail_citoyen # FIXME: without that sys.path does not contain portail_citoyen.apps INSTALLED_APPS = ( @@ -402,42 +403,42 @@ LOGGING = { }, 'loggers': { 'authentic2': { - 'handlers': ['syslog'], + 'handlers': ['mail_admins','syslog'], 'level': 'DEBUG' if DEBUG else 'INFO', 'propagate': False, }, 'requests': { - 'handlers': ['syslog'], + 'handlers': ['mail_admins','syslog'], 'level': 'ERROR', 'propagate': False, }, 'portail_citoyen': { - 'handlers': ['syslog'], + 'handlers': ['mail_admins','syslog'], 'level': 'DEBUG' if DEBUG else 'INFO', 'propagate': False, }, 'django': { - 'handlers': ['syslog'], + 'handlers': ['mail_admins','syslog'], 'level': 'DEBUG' if DEBUG else 'INFO', 'propagate': False, }, 'django.db': { - 'handlers': ['syslog'], + 'handlers': ['mail_admins','syslog'], 'level': 'INFO', 'propagate': False, }, 'south': { - 'handlers': ['syslog'], + 'handlers': ['mail_admins','syslog'], 'level': 'INFO', 'propagate': False, }, 'django_select2': { - 'handlers': ['syslog'], + 'handlers': ['mail_admins','syslog'], 'level': 'INFO', 'propagate': False, }, '': { - 'handlers': ['syslog'], + 'handlers': ['mail_admins','syslog'], 'level': 'DEBUG' if DEBUG else 'INFO', 'propagate': True, },