Closed mikellykels closed 7 years ago
Afaik, current versions expect a dotted path to the Client class, instead of an instance of the class: https://docs.sentry.io/clients/python/integrations/django/#additional-settings
Hi @ashwoods,
I had raised the ticket and forgot to mention the contents of the module sentry_config
mentioned in the code snippet above. Its contents posted below.
import os
import raven
RAVEN_CONFIG = {
'dsn': None,
# If you are using git, you can also automatically configure the
# release based on the git info.
'release': raven.fetch_git_sha(os.path.dirname(os.pardir)),
}
Additionally, the variable SENTRY_DSN
is set to None in the default environments but over-ridden for the ones where we enable Sentry logging.
Not sure if this helps but we use uWSGI enabled with master, lazy-apps, enable-threads and single-interpreter
I checked the Additional Settings section of the docs you mentioned and had a couple of questions -
raven.contrib.django.raven_compat
to the installed apps wouldn't raven load the appropriate client from that module?Let me know if you need additional info
I think the error comes from this in your settings:
SENTRY_CLIENT = Client(SENTRY_DSN)
should be empty or if using a custom client a dotted path to the client class.
I'm not sure if this was a breaking change.
I'm assuming this is resolved. Feel free to reopen if not the case.
From Zendesk: https://sentry.zendesk.com/agent/tickets/7308
We use raven==6.0.0 along with uWSGI app server to track errors in our Django application. Lately we've been seeing this type of tracebacks
Raven is imported as follows in our settings
CC @ashwoods