mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +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"))]
|
||||
|
||||
SENTRY_DSN = ""
|
||||
SENTRY_ENV = "production"
|
||||
|
||||
try:
|
||||
from .settings_custom import *
|
||||
@ -678,7 +679,7 @@ if SENTRY_DSN:
|
||||
sentry_sdk.init(
|
||||
dsn=SENTRY_DSN,
|
||||
integrations=[DjangoIntegration()],
|
||||
environment="production",
|
||||
environment=SENTRY_ENV,
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user