Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit 570466f

Browse files
committed
Merge pull request #340 from gandalfar/patch-337
implements sentry support
2 parents 93568fb + f74ea1b commit 570466f

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

codeweekeu/settings.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,10 @@
226226
'mailer',
227227

228228
#delete old Files and Images
229-
'django_cleanup'
229+
'django_cleanup',
230+
231+
# Sentry
232+
'raven.contrib.django.raven_compat',
230233
)
231234
########## END APP CONFIGURATION
232235

@@ -543,6 +546,8 @@
543546

544547
CRISPY_TEMPLATE_PACK = 'bootstrap3'
545548

549+
RAVEN_CONFIG = {}
550+
546551
try:
547552
from settings_local import *
548553
except ImportError, e:

codeweekeu/settings_production.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@
4444
SOCIAL_AUTH_FACEBOOK_SECRET = os.environ.get('FACEBOOK_SECRET', '')
4545
SOCIAL_AUTH_TWITTER_KEY = os.environ.get('TWITTER_KEY', '')
4646
SOCIAL_AUTH_TWITTER_SECRET = os.environ.get('TWITTER_SECRET', '')
47+
48+
RAVEN_CONFIG = { 'dsn': os.environ.get('SENTRY_KEY') }

manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
if __name__ == "__main__":
66
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "codeweekeu.settings")
77

8-
if 'test' in sys.argv:
8+
if sys.argv.index('test') == 1:
99
import pytest
1010
sys.argv.pop(1)
1111
sys.exit(pytest.main())

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ dj-static==0.0.5
3333
djangorestframework==2.4.2
3434
Markdown==2.4.1
3535
django-cleanup==0.1.10
36+
raven==5.0.0

server-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dj-static==0.0.5
3333
djangorestframework==2.4.2
3434
Markdown==2.4.1
3535
django-cleanup==0.1.10
36+
raven==5.0.0
3637

3738
dj-database-url==0.2.2
3839
MySQL-python==1.2.5

0 commit comments

Comments
 (0)