Skip to content

Commit

Permalink
feat(backend): Add Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
barnslig committed Mar 2, 2022
1 parent 40533d8 commit ef38e98
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
1 change: 1 addition & 0 deletions backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ django-cors-headers = "*"
qrcode = {extras = ["pil"], version = "*"}
django-environ = "*"
django-ninja = "*"
sentry-sdk = "*"

[dev-packages]

Expand Down
31 changes: 27 additions & 4 deletions backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions backend/dpt_app/dpt_app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"""

from pathlib import Path
from sentry_sdk.integrations.django import DjangoIntegration
import environ
import sentry_sdk

env = environ.Env(
DEBUG=(bool, False),
Expand Down Expand Up @@ -155,6 +157,14 @@
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'


# Sentry settings
# https://docs.sentry.io/platforms/python/guides/django/configuration/

sentry_sdk.init(
integrations=[DjangoIntegration()],
)


# Diversity Puzzle Trails Settings

DPT_QR_HOST = env('QR_HOST')

0 comments on commit ef38e98

Please sign in to comment.