Skip to content

Instantly share code, notes, and snippets.

@danse
Created June 11, 2014 10:01
Show Gist options
  • Save danse/f57061fc89418f14319a to your computer and use it in GitHub Desktop.
Save danse/f57061fc89418f14319a to your computer and use it in GitHub Desktop.
from eve import Eve
from raven.handlers.logging import SentryHandler
import superdesk
from .settings import settings as default_settings
from .blueprints.proxy import blueprint as proxy_blueprint
def register_blueprints(app):
app.register_blueprint(proxy_blueprint, url_prefix='/proxy')
def get_app(customised={}):
settings = default_settings.copy()
settings.update(customised)
app = Eve(settings=settings)
register_blueprints(app)
superdesk.users.register(app)
return app
app = get_app()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment