Skip to content
This repository was archived by the owner on Jul 16, 2021. It is now read-only.

Commit be3ca00

Browse files
committed
Setup raven.
1 parent 0646b74 commit be3ca00

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

bookshelf/bookshelf/settings.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
# Third-party.
2929
"django_extensions",
3030
"debug_toolbar",
31+
"raven.contrib.django.raven_compat",
3132
"stories.contrib.debug_toolbars.django",
3233
# Project.
3334
"bookshelf.apps.BookshelfConfig",
@@ -97,3 +98,9 @@
9798
]
9899

99100
INTERNAL_IPS = [gethostbyname(gethostname())[:-1] + "1"]
101+
102+
# Sentry.
103+
104+
SENTRY_CLIENT = "stories.contrib.sentry.django.DjangoClient"
105+
106+
RAVEN_CONFIG = {"dsn": env("SENTRY_DSN")}

bookshelf/requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ djangorestframework
88
git+https://github.com/dry-python/mappers.git@master#egg=mappers
99
psycopg2
1010
pydantic
11+
raven
1112
git+https://github.com/dry-python/stories.git@master#egg=stories
1213
Werkzeug[watchdog]

bookshelf/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ djangorestframework==3.11.0
88
git+https://github.com/dry-python/mappers.git@master#egg=mappers
99
psycopg2==2.8.4
1010
pydantic==0.32.2
11+
raven==6.10.0
1112
git+https://github.com/dry-python/stories.git@master#egg=stories
1213
Werkzeug==0.16.0
1314
## The following requirements were added by pip freeze:

0 commit comments

Comments
 (0)