Skip to content

Commit

Permalink
Merge pull request #78 from DjangoChinaOrg/feature/add-sentry
Browse files Browse the repository at this point in the history
plug in sentry
  • Loading branch information
yangxg committed Jul 22, 2018
2 parents 2717940 + b146964 commit 3044c50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
'actstream',
'django_filters',
'corsheaders',
'raven.contrib.django.raven_compat', # sentry support

# local apps
'users',
Expand Down
5 changes: 5 additions & 0 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
MYSQL_DB_NAME = os.getenv('MYSQL_MYSQL_DB_NAME')
MYSQL_DB_USER = os.getenv('MYSQL_MYSQL_DB_USER')
MYSQL_PASSWORD = os.getenv('MYSQL_PASSWORD')
# sentry dsn
RAVEN_CONFIG = {
'dsn': os.environ.get('SENTRY_DSN', ''),
}


# database
DATABASES['default'].update(
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ factory-boy==2.10.0
django-model-utils==3.1.1
django-cors-headers==2.2.0
mysqlclient==1.3.12

raven
git+https://github.com/zmrenwu/django-activity-stream.git@master#egg=django-activity-stream

0 comments on commit 3044c50

Please sign in to comment.