mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 18:44:23 +00:00
SENTRY_ENV can now be overriden in settings.py
This commit is contained in:
parent
4f9c2724f5
commit
29139bf360
@ -643,6 +643,7 @@ SITH_MAILING_FETCH_KEY = "IloveMails"
|
|||||||
SITH_GIFT_LIST = [("AE Tee-shirt", _("AE tee-shirt"))]
|
SITH_GIFT_LIST = [("AE Tee-shirt", _("AE tee-shirt"))]
|
||||||
|
|
||||||
SENTRY_DSN = ""
|
SENTRY_DSN = ""
|
||||||
|
SENTRY_ENV = "production"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from .settings_custom import *
|
from .settings_custom import *
|
||||||
@ -678,7 +679,7 @@ if SENTRY_DSN:
|
|||||||
sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
dsn=SENTRY_DSN,
|
dsn=SENTRY_DSN,
|
||||||
integrations=[DjangoIntegration()],
|
integrations=[DjangoIntegration()],
|
||||||
environment="production",
|
environment=SENTRY_ENV,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user