Set up Sentry for different environments (production, production)

I want to configure Sentry in a Django application to report errors in different environments such as creation and production. That way, I can set up an alert for each environment.

How to set up different environments for Raven using different Django settings? The variable is environmentnot specified in Raven Python docs client arguments , however I can find the variable in raven-python code .

+4
source share
2 answers

Django, environment raven-python.

- . . , .

+6

. , . dev.py prod.py. , . , GitPython. - :

if branch in ['develop']:
    DEBUG = True
    RAVEN_CONFIG = {
    'dsn': 'your_link_to_raven',
}
else:
    #some other settings
0

Source: https://habr.com/ru/post/1655445/


All Articles