Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add Sentry
Marcin Gębala76c6d943da12
diff --git a/requirements.in b/requirements.inindex 9d3fbe7190..bd0581a7a3 100644--- a/requirements.in+++ b/requirements.in@@ -47,6 +47,7 @@ pytest-djangopytest-vcrpytest-mockvcrpy+raven==6.9.0requests>=1.2.0social-auth-app-django>=2.0.0text-unidecodediff --git a/requirements.txt b/requirements.txtindex c694e10132..c5b323196e 100644--- a/requirements.txt+++ b/requirements.txt@@ -93,6 +93,7 @@ python-dateutil==2.6.1 # via botocore, elasticsearch-dsl, faker, freezegunpython3-openid==3.1.0 # via social-auth-corepytz==2018.3 # via babel, celery, djangopyyaml==3.12 # via vcrpy+raven==6.9.0redis==2.10.6 # via celery, django-redisrequests-oauthlib==0.8.0 # via social-auth-corerequests==2.18.4diff --git a/saleor/settings.py b/saleor/settings.pyindex bf0cbfcdae..c529592799 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -8,6 +8,8 @@ from django.contrib.messages import constants as messagesfrom django.utils.translation import gettext_lazy as _from django_prices.templatetags.prices_i18n import get_currency_fraction+from . import __version__+def get_list(text):return [item.strip() for item in text.split(',')]@@ -227,7 +229,8 @@ INSTALLED_APPS = ['django_celery_results','impersonate','phonenumber_field',- 'captcha']+ 'captcha',+ 'raven.contrib.django.raven_compat']if DEBUG:MIDDLEWARE.append(@@ -494,3 +497,11 @@ NOCAPTCHA = True# Set Google's reCaptcha keysRECAPTCHA_PUBLIC_KEY = os.environ.get('RECAPTCHA_PUBLIC_KEY')RECAPTCHA_PRIVATE_KEY = os.environ.get('RECAPTCHA_PRIVATE_KEY')+++# Sentry+RAVEN_DSN = os.environ.get('RAVEN_DSN')+if RAVEN_DSN:+ RAVEN_CONFIG = {+ 'dsn': RAVEN_DSN,+ 'release': __version__}