This repository was archived by the owner on Sep 19, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +11
-2
lines changed
Expand file tree Collapse file tree 5 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 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
543546
544547CRISPY_TEMPLATE_PACK = 'bootstrap3'
545548
549+ RAVEN_CONFIG = {}
550+
546551try :
547552 from settings_local import *
548553except ImportError , e :
Original file line number Diff line number Diff line change 4444SOCIAL_AUTH_FACEBOOK_SECRET = os .environ .get ('FACEBOOK_SECRET' , '' )
4545SOCIAL_AUTH_TWITTER_KEY = os .environ .get ('TWITTER_KEY' , '' )
4646SOCIAL_AUTH_TWITTER_SECRET = os .environ .get ('TWITTER_SECRET' , '' )
47+
48+ RAVEN_CONFIG = { 'dsn' : os .environ .get ('SENTRY_KEY' ) }
Original file line number Diff line number Diff line change 55if __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 ())
Original file line number Diff line number Diff line change @@ -33,3 +33,4 @@ dj-static==0.0.5
3333djangorestframework == 2.4.2
3434Markdown == 2.4.1
3535django-cleanup == 0.1.10
36+ raven == 5.0.0
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ dj-static==0.0.5
3333djangorestframework==2.4.2
3434Markdown==2.4.1
3535django-cleanup==0.1.10
36+ raven==5.0.0
3637
3738dj-database-url==0.2.2
3839MySQL-python==1.2.5
You can’t perform that action at this time.
0 commit comments