dcramer/raven — Issue #54: SENTRY_PROJECT not respected by Django handler?
Author: eykd
Created: 2012-02-02 00:22:39+00:00
State: open

I'm splitting this issue off of #44.

In my Django settings, I'm specifying `SENTRY_PROJECT = 2`. I've also set up a corresponding project on my sentry server. However, all messages/errors/exceptions from the site are going to the Default project 1.

Other settings that might be pertinent:

SENTRY_PROJECT = 2
SENTRY_SITE = 'my.crossway.org'
SENTRY_PROCESSORS = (
'raven.processors.SantizePasswordsProcessor',
)
SENTRY_DSN = 'http://:@/2' # Just added this, but I don't know what it's for.

INSTALLED_APPS += (
'raven.contrib.django',
)

MIDDLEWARE_CLASSES = (
# We recommend putting this as high in the chain as possible
'raven.contrib.django.middleware.SentryResponseErrorIdMiddleware',
'raven.contrib.django.middleware.Sentry404CatchMiddleware',
...
)

LOGGING['root'] = {
'level': 'INFO',
'handlers': ['sentry', 'console'],
}

LOGGING.setdefault('handlers', {}).update({
'sentry': {
'level': 'ERROR',
'class': 'raven.contrib.django.handlers.SentryHandler',
},

})

I've tried this with both the latest Sentry release on PyPI and the master branch, as well as both release and master of Raven. I'm stumped.