-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Many of our applications are not actually connected to sentry, for example: https://github.com/ccnmtl/footprints/blob/master/footprints/settings_production.py#L5 The ctlsettings common() method requires the `sentry_dsn` param to be set, which isn't in this case, and isn't available until local_settings is imported. Some applications are set up for sentry where they init sentry within the application: https://github.com/ccnmtl/mediathread/blob/master/mediathread/settings_production.py#L49 With this update to ctlsettings, applications can call the common code to initialize sentry using a pattern like this: ``` from ctlsettings.production import init_sentry """ after local_settings import """ if hasattr(settings, 'SENTRY_DSN'): init_sentry(SENTRY_DSN) ```
- Loading branch information
Showing
3 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters