From 16e5083794bc44a497bd6826c38e1db066f0ec57 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 5 Nov 2013 16:06:49 +0100 Subject: [PATCH] install raven to send exceptions to sentry --- appli_project/settings/prod.py | 11 +++++++---- requirements | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/appli_project/settings/prod.py b/appli_project/settings/prod.py index ceb3ff2..10e2f7f 100644 --- a/appli_project/settings/prod.py +++ b/appli_project/settings/prod.py @@ -8,15 +8,18 @@ DEBUG = False TEMPLATE_DEBUG = DEBUG INTERNAL_IPS = ('127.0.0.1',) -ADMINS = ( - ('Benjamin Dauvergne', 'bdauvergne@entrouvert.com'), - ('Thomas Noël', 'tnoel@entrouvert.com'), -) +ADMINS = () MANAGERS = ADMINS LOGGING = LOGGING_FUNC('/var/log/logement', DEBUG) MEDIA_ROOT = '/var/lib/logement/media/' STATIC_ROOT = '/var/lib/logement/static/' +INSTALLED_APPS = INSTALLED_APPS + ( + 'raven.contrib.django.raven_compat', +) +RAVEN_CONFIG = { + 'dsn': 'https://2c17ac65d58e49b180238e76aa880af1:cb8739da55fd40c4b44750661653edae@sentry.entrouvert.org/12', +} try: from local_settings_prod import * diff --git a/requirements b/requirements index 44e5b1e..c9747b9 100644 --- a/requirements +++ b/requirements @@ -16,3 +16,4 @@ git+http://github.com/cypreess/django-fiber-modeltranslation.git django-daterange-filter==0.1.1 django-journal>=1.21.0,<2.0.0 http://repos.entrouvert.org/python-entrouvert.git/snapshot/python-entrouvert-1.3.tar.gz +raven