Skip to main content

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.

Metadata

Release files for sentry-django-settings 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentry-django-settings 0.6.1
File Size Uploaded Provenance Actions
sentry_django_settings-0.6.1.tar.gz 5.7 kB Without provenance Details for sentry_django_settings-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sentry-django-settings 0.6.1
File Interpreter ABI Platform Actions
sentry_django_settings-0.6.1-py3-none-any.whl Python 3 none any Details for sentry_django_settings-0.6.1-py3-none-any.whl

Total release size: 10.0 kB

Release files / sentry_django_settings-0.6.1.tar.gz

Download URL sentry_django_settings-0.6.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
38136126606262d1ec41ffb7ac27a05abd7a719dba4f7e8fce67b345414dfd63
BLAKE2b-256 checksum
How to use checksums
438acf1e189228cd9d6ab6c5c2ad3cef70fabda42e9435dad0055a18768630ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / sentry_django_settings-0.6.1-py3-none-any.whl

Download URL sentry_django_settings-0.6.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e96ed982d2ce0750244dddcadf470c23f06fc302d64a677dd0c87f51a446f690
BLAKE2b-256 checksum
How to use checksums
2e9df1dba7a56a8e61c350a7f607c9ab32036864a08ffd0c1702f5ec3df794c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for sentry-django-settings 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page