Skip to content
Snippets Groups Projects
Commit cc3f7c76 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

Merge branch 'test' into 'master'

sentry integration

See merge request !25
parents b4e23e77 93f3426b
No related branches found
No related tags found
1 merge request!25sentry integration
Pipeline #17055 passed
from pathlib import Path
import environ
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
ROOT_DIR = Path(__file__).parents[2]
......@@ -80,6 +84,20 @@ TEMPLATES = [
]
# SENTRY
# ------------------------------------------------------------------------------
SENTRY_DSN = env.str("SENTRY_DSN", default="")
if SENTRY_DSN != "":
sentry_sdk.init(
dsn=SENTRY_DSN,
integrations=[
DjangoIntegration(),
],
send_default_pii=True,
)
# STATIC
# ------------------------------------------------------------------------------
STATIC_URL = "/static/"
......
gunicorn
sentry-sdk
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile prod.in
#
certifi==2024.2.2
# via sentry-sdk
gunicorn==21.2.0
# via -r prod.in
packaging==23.2
# via gunicorn
sentry-sdk==1.40.5
# via -r prod.in
urllib3==2.2.1
# via sentry-sdk
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment