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 .
environment
Django, environment raven-python.
raven-python
- . . , .
. , . dev.py prod.py. , . , GitPython. - :
if branch in ['develop']: DEBUG = True RAVEN_CONFIG = { 'dsn': 'your_link_to_raven', } else: #some other settings
Source: https://habr.com/ru/post/1655445/More articles:Specify the height and width of the ggplot plot in the output of Rmarkdown knitr - rAre methods class instances that consume a lot of memory (in Scala)? - pythonThe didSelectRowAtIndexPath method never called iOS 10 devices - iosSOAP node returns Target-Namespace "undefined" error already used by another scheme - soapExporting C ++ Class Symbols Using GCC - c ++Error: CreateProcess error = 216, This version of% 1 - javaTime difference using strtotime - phpHow to install after onclick it includes image and contents of span div in jquery - javascriptWhat causes the control to be placed more left-right-top-bottom than another that has the same alignment? - alignmentMake a smaller button in bootstrap - cssAll Articles