Add Opbeat
parent
680a708f79
commit
04a07c1b09
|
@ -14,4 +14,7 @@ ALLOWED_HOSTS=*
|
|||
DATABASE_URL=sqlite:///db.sqlite3
|
||||
|
||||
# Services
|
||||
OPBEAT_ORGID=
|
||||
OPBEAT_APPID=
|
||||
OPBEAT_SECRET=
|
||||
GOOGLE_ANALYTICS_KEY=
|
||||
|
|
|
@ -17,5 +17,16 @@ EMAIL_TIMEOUT = 300
|
|||
DEFAULT_FROM_EMAIL = os.getenv('DEFAULT_FROM_EMAIL', 'noreply@example.com')
|
||||
SERVER_EMAIL = DEFAULT_FROM_EMAIL
|
||||
|
||||
# Analytics
|
||||
# Metrics
|
||||
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
|
||||
'opbeat.contrib.django.middleware.OpbeatAPMMiddleware',
|
||||
)
|
||||
INSTALLED_APPS = INSTALLED_APPS + (
|
||||
'opbeat.contrib.django',
|
||||
)
|
||||
OPBEAT = {
|
||||
'ORGANIZATION_ID': os.getenv('OPBEAT_ORGID', None),
|
||||
'APP_ID': os.getenv('OPBEAT_APPID', None),
|
||||
'SECRET_TOKEN': os.getenv('OPBEAT_SECRET', None),
|
||||
}
|
||||
GOOGLE_ANALYTICS_KEY = os.getenv('GOOGLE_ANALYTICS_KEY', None)
|
||||
|
|
|
@ -3,3 +3,4 @@
|
|||
|
||||
MySQL-python==1.2.5
|
||||
gunicorn==19.3.0
|
||||
opbeat==3.0.1
|
||||
|
|
Loading…
Reference in New Issue