Skip to content

Instantly share code, notes, and snippets.

@dcramer
Created December 28, 2011 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcramer/1526468 to your computer and use it in GitHub Desktop.
Save dcramer/1526468 to your computer and use it in GitHub Desktop.
# install requirements from github
pip install git+ssh://git@github.com:dcramer/sentry.git@2.0#egg=raven==2.0.0-DEV
pip install git+ssh://git@github.com:dcramer/raven.git@2.0#egg=sentry==2.0.0-DEV
# start sentry webserver
sentry start
# add raven to whatever app
# e.g. Django:
INSTALLED_APPS = (
'raven.contrib.django',
)
SENTRY_SERVERS = ['http://localhost:9000/store/']
# use raven from CLI
from raven import Client
client = Client(servers=['http://localhost:9000/store/'])
client.capture('Message', message='hello')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment