Skip to main content

Handsfree setup of your Django project inside of Sentry!

Project description

Project generated with PyScaffold

django-sentry-auto-setup

Handsfree setup of your Django project inside of Sentry!

Tired of setting up Sentry by hand? Me too! So here is a little package that quickly sets up a Django project automatically.

Install

pip install django-sentry-auto-setup

Configure

Set these values in your environment or your Django settings file:

SENTRY_AUTH_TOKEN
SENTRY_ENABLE_AUTO_SETUP
SENTRY_HOST  # Include the protocal (ex https://)
SENTRY_ORGANIZATION_SLUG
SENTRY_PROJECT_NAME
SENTRY_PROJECT_SLUG
SENTRY_TEAM_SLUG

If you need to further configure the Sentry SDK also set this in Django settings:

SENTRY_SDK_KWARGS

Finally, add this to your settings file

INSTALLED_APPS = [
    ...
    'coco.dev.django_sentry',
    ...
]

Making Changes & Contributing

This project uses pre-commit, please make sure to install it before making any changes:

pip install pre-commit
cd django-sentry-auto-setup
pre-commit install

It is a good idea to update the hooks to the latest version:

pre-commit autoupdate

Don’t forget to tell your contributors to also install and use pre-commit.

Note

This project has been set up using PyScaffold 4.6. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

django_sentry_auto_setup-1.0.2.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_sentry_auto_setup-1.0.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file django_sentry_auto_setup-1.0.2.tar.gz.

File metadata

File hashes

Hashes for django_sentry_auto_setup-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4d32b56b5b1b52bf4ef55bdcf9b965906caa3000626ab4bf9bdd444712e31e3e
MD5 9f6c7dd8396cb65f5ca226c216a2b897
BLAKE2b-256 ba2fdbdd473326c8d21e2837424c7c65aab15dfdcb55b7eefebd658d1d4b078e

See more details on using hashes here.

File details

Details for the file django_sentry_auto_setup-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sentry_auto_setup-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7c117107b532f4d47775dbb4f59ac992b3dd3dc55e9159a9e9ef3de92bbc8c2
MD5 124afcfcb55e8e67d2bf7af21d6049b1
BLAKE2b-256 8e38e5a2acc6a1b49a488fdeb9d54606fb6a1f6f0f768f8cefd32fa4ad847b7f

See more details on using hashes here.

Supported by

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