Skip to content
Snippets Groups Projects

Feat/redesign

Merged Alexa Valentová requested to merge feat/redesign into master
168 files
+ 3111
349
Compare changes
  • Side-by-side
  • Inline
Files
168
from pathlib import Path
from pathlib import Path
import environ
import environ
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
ROOT_DIR = Path(__file__).parents[2]
ROOT_DIR = Path(__file__).parents[2]
@@ -86,6 +83,11 @@ TEMPLATES = [
@@ -86,6 +83,11 @@ TEMPLATES = [
# SENTRY
# SENTRY
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
 
try:
 
import sentry_sdk
 
 
from sentry_sdk.integrations.django import DjangoIntegration
 
SENTRY_DSN = env.str("SENTRY_DSN", default="")
SENTRY_DSN = env.str("SENTRY_DSN", default="")
if SENTRY_DSN != "":
if SENTRY_DSN != "":
@@ -96,6 +98,8 @@ if SENTRY_DSN != "":
@@ -96,6 +98,8 @@ if SENTRY_DSN != "":
],
],
send_default_pii=True,
send_default_pii=True,
)
)
 
except ImportError:
 
pass
# STATIC
# STATIC
Loading