sentry settings for dev-server

This commit is contained in:
evgeniy-st 2019-09-17 10:42:05 +03:00
parent 7a021a1435
commit 8ac46b7379
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,7 @@
"""Development settings."""
from .base import *
import sentry
from sentry_sdk.integrations.django import DjangoIntegration
ALLOWED_HOSTS = ['gm.id-east.ru', '95.213.204.126']
@ -25,3 +27,9 @@ ELASTICSEARCH_INDEX_NAMES = {
'search_indexes.documents.news': 'development_news',
'search_indexes.documents.establishment': 'development_establishment',
}
sentry_sdk.init(
dsn="https://35d9bb789677410ab84a822831c6314f@sentry.io/1729093",
integrations=[DjangoIntegration()]
)

View File

@ -31,4 +31,5 @@ django-cors-headers==3.0.2
djangorestframework-simplejwt==4.3.0
django-elasticsearch-dsl>=7.0.0,<8.0.0
django-elasticsearch-dsl-drf==0.20.2
django-elasticsearch-dsl-drf==0.20.2
sentry-sdk==0.11.2