From 835f1fb8b30e6b3f20549375d5971423cc6419cc Mon Sep 17 00:00:00 2001 From: Dmitriy Shesterkin Date: Sun, 6 Aug 2017 15:52:28 +0300 Subject: [PATCH] sentry settings --- src/dokumentor/settings/production.py | 10 +++++++++- src/dokumentor/settings/stage.py | 9 --------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/dokumentor/settings/production.py b/src/dokumentor/settings/production.py index 7beaff2..5ac5187 100644 --- a/src/dokumentor/settings/production.py +++ b/src/dokumentor/settings/production.py @@ -1,6 +1,6 @@ # flake8: noqa # coding: utf-8 - +import raven import dj_database_url from src.dokumentor.settings.common import * @@ -46,3 +46,11 @@ ROBOKASSA_PASSWORD2 = 'D552KBeAJhhVOfKEqT62' ROBOKASSA_USE_POST = True ROBOKASSA_STRICT_CHECK = True ROBOKASSA_TEST_MODE = False + +RAVEN_CONFIG = { + 'dsn': 'http://02d524ef0d044bdfae0b39546b752cb2:' + '1e025305594d4532ae93125372dcde50@sentry.mitri4.pro/1', + # If you are using git, you can also automatically configure the + # release based on the git info. + 'release': raven.fetch_git_sha(ROOT_DIR), +} diff --git a/src/dokumentor/settings/stage.py b/src/dokumentor/settings/stage.py index 90d7e24..9896723 100644 --- a/src/dokumentor/settings/stage.py +++ b/src/dokumentor/settings/stage.py @@ -1,6 +1,5 @@ # flake8: noqa # coding: utf-8 -import raven import dj_database_url from src.dokumentor.settings.common import * @@ -21,14 +20,6 @@ DATABASES = { 'default': dj_database_url.parse('postgres://dokumentor:dokumentor@db:5432/dokumentor'), } -RAVEN_CONFIG = { - 'dsn': 'http://02d524ef0d044bdfae0b39546b752cb2:' - '1e025305594d4532ae93125372dcde50@sentry.mitri4.pro/1', - # If you are using git, you can also automatically configure the - # release based on the git info. - 'release': raven.fetch_git_sha(ROOT_DIR), -} - DEFAULT_FROM_EMAIL = 'Открытые технологии ' SERVER_EMAIL = DEFAULT_FROM_EMAIL EMAIL_HOST = 'smtp.yandex.ru'