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.3.tar.gz (23.5 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.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_sentry_auto_setup-1.0.3.tar.gz
Algorithm Hash digest
SHA256 49a2dca12265a50daa13608b741ba51381d1271acfbe964af036d6f75bf157c8
MD5 e9260ae6662d6fb4805a2dc8be8a1eb1
BLAKE2b-256 1301ad8d97c056929098c6cbb0674d01acb171a41ecfb731f02cdd914d52ae0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_sentry_auto_setup-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 91f05f5a7a75b43ac6b576ce2d4ee2165a1e1b8d94f948b60a400333553e2e09
MD5 1234ac639ee6d5dccb934502b7c85110
BLAKE2b-256 7328dd4ab8ccb6d1318c60c95b960085811209651999e8d23f7bd5e89e815a1a

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