1
0
Fork 0
mirror of https://github.com/Findus23/acronomy.git synced 2024-09-18 14:33:43 +02:00

add sentry

This commit is contained in:
Lukas Winkler 2021-01-29 19:28:57 +01:00
parent 58d4f7579d
commit 0bb4e481ab
Signed by: lukas
GPG key ID: 54DE4D798D244853
3 changed files with 42 additions and 1 deletions

View file

@ -11,6 +11,9 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
"""
from pathlib import Path
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from .secrets import *
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@ -139,3 +142,7 @@ if Production:
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
sentry_sdk.init(
dsn=SENTRY_DSN,
integrations=[DjangoIntegration()]
)

35
poetry.lock generated
View file

@ -366,6 +366,35 @@ urllib3 = ">=1.21.1,<1.27"
security = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)"]
socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"]
[[package]]
name = "sentry-sdk"
version = "0.19.5"
description = "Python client for Sentry (https://sentry.io)"
category = "main"
optional = false
python-versions = "*"
[package.dependencies]
certifi = "*"
django = {version = ">=1.8", optional = true, markers = "extra == \"django\""}
urllib3 = ">=1.10.0"
[package.extras]
aiohttp = ["aiohttp (>=3.5)"]
beam = ["apache-beam (>=2.12)"]
bottle = ["bottle (>=0.12.13)"]
celery = ["celery (>=3)"]
chalice = ["chalice (>=1.16.0)"]
django = ["django (>=1.8)"]
falcon = ["falcon (>=1.4)"]
flask = ["flask (>=0.11)", "blinker (>=1.1)"]
pure_eval = ["pure-eval", "executing", "asttokens"]
pyspark = ["pyspark (>=2.4.4)"]
rq = ["rq (>=0.6)"]
sanic = ["sanic (>=0.8)"]
sqlalchemy = ["sqlalchemy (>=1.2)"]
tornado = ["tornado (>=5)"]
[[package]]
name = "six"
version = "1.15.0"
@ -438,7 +467,7 @@ testing = ["pytest (>=3.5,!=3.7.3)", "pytest-checkdocs (>=1.2.3)", "pytest-flake
[metadata]
lock-version = "1.1"
python-versions = ">=3.7,<4.0"
content-hash = "2abce1bbe9bb865478697ad497fd535bbd5e10c46914ba413b9885e8e85c88c5"
content-hash = "228ce54d7410bd2ad09ed59dde0203a7d482268742a2815d120d5f5fa951e2ec"
[metadata.files]
ads = [
@ -677,6 +706,10 @@ requests = [
{file = "requests-2.25.0-py2.py3-none-any.whl", hash = "sha256:e786fa28d8c9154e6a4de5d46a1d921b8749f8b74e28bde23768e5e16eece998"},
{file = "requests-2.25.0.tar.gz", hash = "sha256:7f1a0b932f4a60a1a65caa4263921bb7d9ee911957e0ae4a23a6dd08185ad5f8"},
]
sentry-sdk = [
{file = "sentry-sdk-0.19.5.tar.gz", hash = "sha256:737a094e49a529dd0fdcaafa9e97cf7c3d5eb964bd229821d640bc77f3502b3f"},
{file = "sentry_sdk-0.19.5-py2.py3-none-any.whl", hash = "sha256:0a711ec952441c2ec89b8f5d226c33bc697914f46e876b44a4edd3e7864cf4d0"},
]
six = [
{file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"},
{file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"},

View file

@ -20,6 +20,7 @@ beautifulsoup4 = "^4.9.1"
django-bootstrap4 = "^2.0.0"
libsass = "^0.20.0"
markdown-katex = "^202009.1026"
sentry-sdk = {extras = ["django"], version = "^0.19.5"}
[tool.poetry.dev-dependencies]
bpython = "^0.19"