Skip to main content

Easy Django-Sentry integration via Django settings.

Project description

DEPRECATED

This package is no longer being supported. While it should still work for the foreseeable feature, we recommend using the official sentry-sdk package and following their documentation on integrating with Django.

Read the announcement issue for more information.

Sentry Django Settings

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

Installation

pip install sentry_django_settings

Add sentry_django_settings.apps.Sentry to your INSTALLED_APPS.

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

You can now add the SENTRY setting to your settings.py file:

SENTRY = {
    'enabled': True,
    'dsn': "https://2e2ac79f64d34e4b85c3a3173e343464@sentry.mysite.com/5",
    'environment': "dev",  # Optional
    'release': '1.0',  # Optional
}

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.

All other keys passed into the settings are forwarded onto the Sentry SDK init method. See their documentation for more information.

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.6.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

sentry_django_settings-0.6.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file sentry_django_settings-0.6.1.tar.gz.

File metadata

File hashes

Hashes for sentry_django_settings-0.6.1.tar.gz
Algorithm Hash digest
SHA256 38136126606262d1ec41ffb7ac27a05abd7a719dba4f7e8fce67b345414dfd63
MD5 a0fd18070ddf518889725b7cb8209119
BLAKE2b-256 438acf1e189228cd9d6ab6c5c2ad3cef70fabda42e9435dad0055a18768630ff

See more details on using hashes here.

File details

Details for the file sentry_django_settings-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sentry_django_settings-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e96ed982d2ce0750244dddcadf470c23f06fc302d64a677dd0c87f51a446f690
MD5 0bd74e753677857b09fe2c26868d8ab4
BLAKE2b-256 2e9df1dba7a56a8e61c350a7f607c9ab32036864a08ffd0c1702f5ec3df794c0

See more details on using hashes here.

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