Skip to content
Snippets Groups Projects

Feat/redesign

168 files
+ 3111
349
Compare changes
  • Side-by-side
  • Inline

Files

+ 17
13
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,16 +83,23 @@ TEMPLATES = [
@@ -86,16 +83,23 @@ TEMPLATES = [
# SENTRY
# SENTRY
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
SENTRY_DSN = env.str("SENTRY_DSN", default="")
try:
import sentry_sdk
if SENTRY_DSN != "":
sentry_sdk.init(
from sentry_sdk.integrations.django import DjangoIntegration
dsn=SENTRY_DSN,
integrations=[
SENTRY_DSN = env.str("SENTRY_DSN", default="")
DjangoIntegration(),
],
if SENTRY_DSN != "":
send_default_pii=True,
sentry_sdk.init(
)
dsn=SENTRY_DSN,
 
integrations=[
 
DjangoIntegration(),
 
],
 
send_default_pii=True,
 
)
 
except ImportError:
 
pass
# STATIC
# STATIC
Loading