question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Tech Support] How to use this with django?

See original GitHub issue

Where exactly am I supposed to put sentry_sdk.init()?

If I put it in settings.py, I see no error messages being reported.

The docs say nothing about dajngo + new sentry-sdk, except the fact that raven one is deprecated!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

11reactions
devxpycommented, Sep 26, 2018

Here is how you do it, for ref:

# settings.py 

import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration


sentry_sdk.init(
     "<sentry-dsn>", release="<version-info>", integrations=[DjangoIntegration()]
)

0reactions
untitakercommented, Nov 28, 2018

Opened #183 so I don’t forget

On Wed, Nov 28, 2018, 19:35 Markus Unterwaditzer <markus@sentry.io wrote:

The other integration pages already have this. Would be glad about a PR.

On Wed, Nov 28, 2018, 18:14 Coler <notifications@github.com wrote:

Should also add install instruction (with pip for sentry_sdk), most docs include this in setup instructions. Takes 30 seconds to find, but usually this is just included.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/getsentry/sentry-python/issues/83#issuecomment-442528270, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzHxZVT3_ibV-WF4-uZuxMWvs3O823Mks5uzsR4gaJpZM4W5alf .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started with Django
Before you can use Django, you'll need to install it. Our complete installation guide covers all the possibilities; this guide will get you...
Read more >
Django-helpdesk - GitHub
A Django application to manage tickets for an internal helpdesk. Formerly known as Jutda Helpdesk. - GitHub - django-helpdesk/django-helpdesk: A Django ...
Read more >
Django introduction - Learn web development | MDN
Django code is written using design principles and patterns that encourage the creation of maintainable and reusable code. In particular, it ...
Read more >
How To Create a Django App and Connect it to a Database
Next, create a separate MySQL user account that Django will use to operate the new database. Creating specific databases and accounts can ...
Read more >
Getting started with Django | Python - Google Cloud
Django apps that run on Google Cloud are running on the same ... If you choose to use MongoDB, you can deploy it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found