Skip to main content

Easy Django-Sentry integration via Django settings.

Project description

# Sentry Django Settings

This is a package for Django that allows you to add Sentry integration by adding a Django setting.

This relies on your project being a Git repository for Sentry's release tag.

## Installation

`pip install sentry_django_settings`

Add `sentry_django_settings.apps.Sentry` to your `INSTALLED_APPS`.

```python
INSTALLED_APPS = [
# ...
'sentry_django_settings.apps.Sentry',
# ...
]
```

Add a setting like the following to your `settings.py` file:

```python
SENTRY = {
'enabled': True,
'dsn': "https://2e2ac79f64d34e4b85c3a3173e343464@sentry.mysite.com/5",
'environment': "dev"
}
```

`enabled` is a boolean if Sentry should be initialized or not.

To find the DSN in Sentry:

- Go to the project settings in Sentry
- Under `Data`, select `Error Tracking`
- Click "Get your DSN."
- Use the "Public DSN" in all cases.

The `environment` should be appropriate to environment where the server will be running.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentry_django_settings-0.2.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

sentry_django_settings-0.2-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page