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.
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
Built Distribution
Close
Hashes for sentry_django_settings-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00ff6e22fd81a66d0eda565a8993b00a82591027ae76ac266b68606a862486c4 |
|
MD5 | d4c1e8eff3bb4f548031ac18a68ad079 |
|
BLAKE2b-256 | a018156478300e88a5a0ff581a3d865d3c9fe6a0e7099c299af2ebad26c27fa2 |
Close
Hashes for sentry_django_settings-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 090514432d6ec41b537913a0e63b0da35ad0e9afbab1043522e301277500e3fa |
|
MD5 | 7caa62f66e889c75c0836fe8c45fee28 |
|
BLAKE2b-256 | ba4b06a21eb649bf61db18ee5857dcedda09f2da7e15f7a3a2e324f6941a7042 |