vk feed module

This commit is contained in:
2019-01-25 19:33:22 +03:00
parent 747713bce0
commit 90d8c02a08
9 changed files with 147 additions and 13 deletions

View File

@@ -1,7 +1,8 @@
import os
import environ
import raven
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
BASE_DIR = environ.Path(__file__) - 2
@@ -23,7 +24,6 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'raven.contrib.django.raven_compat',
'django_extensions',
'bootstrap4',
'djconfig',
@@ -109,7 +109,7 @@ 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(str(BASE_DIR)),
}
sentry_sdk.init(
dsn=env.str('SENTRY_DSN', None),
integrations=[DjangoIntegration()],
)