Skip to content

Commit

Permalink
Flask-Common
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed May 11, 2017
1 parent a649abc commit a39de83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions httpbin/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import argparse

from flask import Flask, Response, request, render_template, redirect, jsonify as flask_jsonify, make_response, url_for
from flask_common import Common
from six.moves import range as xrange
from werkzeug.datastructures import WWWAuthenticate, MultiDict
from werkzeug.http import http_date
Expand Down Expand Up @@ -53,6 +54,9 @@ def jsonify(*args, **kwargs):
app = Flask(__name__, template_folder=tmpl_dir)
app.debug = bool(os.environ.get('DEBUG'))

# Setup Flask-Common.
common = Common(app)

# Send app errors to Sentry.
if 'SENTRY_DSN' in os.environ:
sentry = Sentry(app, dsn=os.environ['SENTRY_DSN'])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
include_package_data = True, # include files listed in MANIFEST.in
install_requires=[
'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlipy',
'raven[flask]', 'flask_limiter'
'raven[flask]', 'flask_limiter', 'Flask-Common'
],
)

0 comments on commit a39de83

Please sign in to comment.