In the now deprecated package raven
there was a django management command to test the setup: manage.py raven test
.
The new SentrySDK does not show how to do it in the django docs nor does it have any management commands.
Any ideas about that topic?
Thanks to untitaker at GitHub we have a solution:
from sentry_sdk import capture_message
capture_message("hi")
You can open the django shell and execute the command:
python manage.py shell