Add Opbeat to stage
parent
ab269a734e
commit
1d97a50a37
|
@ -3,6 +3,7 @@ from base import *
|
|||
|
||||
ENVIRONMENT = 'production'
|
||||
|
||||
# Opbeat
|
||||
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
|
||||
'opbeat.contrib.django.middleware.OpbeatAPMMiddleware',
|
||||
'opbeat.contrib.django.middleware.Opbeat404CatchMiddleware',
|
||||
|
|
|
@ -3,6 +3,15 @@ from base import *
|
|||
|
||||
ENVIRONMENT = 'stage'
|
||||
|
||||
# Opbeat
|
||||
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
|
||||
'opbeat.contrib.django.middleware.OpbeatAPMMiddleware',
|
||||
'opbeat.contrib.django.middleware.Opbeat404CatchMiddleware',
|
||||
)
|
||||
INSTALLED_APPS = INSTALLED_APPS + (
|
||||
'opbeat.contrib.django',
|
||||
)
|
||||
|
||||
# Security
|
||||
ALLOWED_HOSTS = [
|
||||
os.getenv('ALLOWED_HOSTS', '*')
|
||||
|
@ -14,3 +23,10 @@ EMAIL_PORT = 25
|
|||
EMAIL_TIMEOUT = 300
|
||||
DEFAULT_FROM_EMAIL = os.getenv('DEFAULT_FROM_EMAIL', 'noreply@example.com')
|
||||
SERVER_EMAIL = DEFAULT_FROM_EMAIL
|
||||
|
||||
# Metrics
|
||||
OPBEAT = {
|
||||
'ORGANIZATION_ID': os.getenv('OPBEAT_ORGID', None),
|
||||
'APP_ID': os.getenv('OPBEAT_APPID', None),
|
||||
'SECRET_TOKEN': os.getenv('OPBEAT_SECRET', None),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue