Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

raven

  • Loading branch information...
commit ee9456fd585d1b9906adae90a73bb8de00dd3238 1 parent a5ca394
@kennethreitz authored
Showing with 10 additions and 2 deletions.
  1. +3 −1 requirements.txt
  2. +7 −1 star/core.py
View
4 requirements.txt
@@ -13,4 +13,6 @@ python-dateutil==1.5
requests==0.8.2
wsgiref==0.1.2
psycopg2==2.4.2
-rfc3339==5
+rfc3339==5
+raven>=1.0
+blinker
View
8 star/core.py
@@ -10,18 +10,24 @@
from os import environ
from collections import OrderedDict
+import raven
from flask import Flask, render_template, make_response
from flaskext.sqlalchemy import SQLAlchemy
+from raven.contrib.flask import Sentry
from sqlalchemy import desc
from rfc3339 import rfc3339
-
+from .sentry import configure_raven
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = environ.get('DATABASE_URL')
+app.config['SQLALCHEMY_DATABASE_URI'] = environ.get('DATABASE_URL')
app.debug = True
+raven.load(os.environ['SENTRY_DSN'], app.config)
+
db = SQLAlchemy(app)
+sentry = Sentry(app)
class SavedArticle(db.Model):
Please sign in to comment.
Something went wrong with that request. Please try again.