title: How to send Exceptions to sentry for a django project
body: <p>Following the <a href="https://docs.sentry.io/clients/python/integrations/django/" rel="nofollow noreferrer">Sentry Django guide</a> I've setup my project and deployed it.  </p>
  
  <p>So I configure <code>RAVEN_CONFIG</code> with the <code>SENTRY_DSN</code> value and <code>release</code> values, and include <code>raven.contrib.django.raven_compat</code> in my <code>INSTALLED_APPS</code>.</p>
  
  <p>I've confirmed that with this configuration the following command will properly generate a message in sentry.</p>
  
  <pre><code>python manage.py raven test
  </code></pre>
  
  <p>However, I've created the following django view to raise an exception as an alternative way to confirm that sentry is working, and when I hit this view, I get a 500 response, but nothing shows up in sentry.</p>
  
  <p><em>app1/views.py</em></p>
  
  <pre><code>def error(request):
      x = 1/0  # error for sentry testing
  </code></pre>
  
  <blockquote>
    <p>My expectation is that <em>any</em> exception (including 500 errors) that
    occurs in django will be sent to sentry without the need to use
    logging.</p>
  </blockquote>
  
  <p>Is my understanding of the raven sentry configuration wrong?
  Or, do I need to configure something else?</p>
  
  <p>I am using the LOGGING setting of django, but at the moment I don't care if these messages 'error' or otherwise are sent to sentry.  My main goal at the moment is to catch and send any exception that occurs to sentry.</p>
  
  <pre><code>LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'formatters': {
          'standard': {
              'format': '{asctime} [{levelname:5}] ({name}) {funcName}: {message}',
              'style': '{',
          }
      },
      'handlers': {
          'console': {
              'class': 'logging.StreamHandler',
              'formatter': 'standard',
          },
      },
      'loggers': {
          'django': {
              'handlers': ['console'],
              'level': DJANGO_CORE_LOG_LEVEL,  # Change to DEBUG to see db queries
          },
          'app1': {
              'handlers': ['console'],
              'level': DJANGO_LOG_LEVEL,
              'propagate': True,
          },
          'app2': {
              'handlers': ['console'],
              'level': DJANGO_LOG_LEVEL,
              'propagate': True,
          }
      },
  }
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I've managed to get the <code>app1.views.error</code> view to report an error to sentry when using <em>runserver</em> locally, but after updating the configuration and deploying it's still not working when deployed. (<code>manage raven test</code> does)</p>