Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Our kinja-service Flask app factory
def create_app(service_name):
app = KinjaApp(__name__)
app.config['KINJA_SERVICE_NAME'] = service_name
app.register_error_handler(Exception, general_error_handler)
app.register_error_handler(HTTPException, http_error_handler)
app.register_error_handler(Invalid, validation_error_handler)
init_ops(app)
return app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.