mirror of
https://github.com/fspc/workstand.git
synced 2025-02-23 09:13:23 -05:00
Add rollbar
This commit is contained in:
parent
b2e30d34d3
commit
a8e002eeb5
@ -1,4 +1,7 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import rollbar
|
||||||
|
|
||||||
from .base import * # noqa
|
from .base import * # noqa
|
||||||
|
|
||||||
|
|
||||||
@ -51,3 +54,14 @@ WEBPACK_LOADER = {
|
|||||||
# Covers regular testing and django-coverage
|
# Covers regular testing and django-coverage
|
||||||
if 'test' in sys.argv or 'test_coverage' in sys.argv:
|
if 'test' in sys.argv or 'test_coverage' in sys.argv:
|
||||||
DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3' # noqa
|
DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3' # noqa
|
||||||
|
|
||||||
|
MIDDLEWARE_CLASSES += ['rollbar.contrib.django.middleware.RollbarNotifierMiddleware']
|
||||||
|
|
||||||
|
ROLLBAR = {
|
||||||
|
'access_token': '91808a727b9a4679a89720132071391a',
|
||||||
|
'environment': 'production',
|
||||||
|
'root': BASE_DIR,
|
||||||
|
}
|
||||||
|
|
||||||
|
rollbar.init(**ROLLBAR)
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
-r base.txt
|
-r base.txt
|
||||||
-r testing.txt
|
-r testing.txt
|
||||||
gunicorn==19.4.5
|
gunicorn==19.4.5
|
||||||
|
rollbar==0.13.11
|
||||||
|
Loading…
x
Reference in New Issue
Block a user