add sentry

This commit is contained in:
bakatrouble 2019-01-19 05:58:03 +03:00
parent 87e6055b77
commit b673cb53cb
3 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import os
import environ
import raven
BASE_DIR = environ.Path(__file__) - 2
@ -22,6 +23,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'raven.contrib.django.raven_compat',
'django_extensions',
'bootstrap4',
@ -89,3 +91,8 @@ MEDIA_ROOT = str(PUBLIC_ROOT.path('uploads'))
LOGIN_URL = 'cabinet:login'
LOGIN_REDIRECT_URL = 'cabinet:index'
LOGOUT_REDIRECT_URL = LOGIN_URL
RAVEN_CONFIG = {
'dsn': env.str('SENTRY_DSN', None),
'release': raven.fetch_git_sha(os.path.abspath(os.pardir)),
}

View File

@ -1,2 +1,3 @@
DJANGO_DEBUG = False
DATABASE_URL = postgres://bots:bots@localhost/bots
SENTRY_DSN = https://

View File

@ -13,6 +13,7 @@ kombu==4.2.2.post1
psycopg2-binary==2.7.6.1
pyTelegramBotAPI==3.6.6
pytz==2018.9
raven==6.10.0
redis==3.0.1
requests==2.21.0
six==1.12.0