mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 07:42:20 -05:00
move monkey patching
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
##!/usr/bin/env python
|
||||
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from flask import Flask
|
||||
from werkzeug.serving import WSGIRequestHandler
|
||||
from gevent import monkey
|
||||
|
||||
from app import create_app, socketio # noqa: F401
|
||||
monkey.patch_all() # this has to be called before other imports or monkey patching doesn't happen
|
||||
|
||||
|
||||
from flask import Flask # noqa
|
||||
from werkzeug.serving import WSGIRequestHandler # noqa
|
||||
|
||||
from app import create_app, socketio # noqa
|
||||
|
||||
WSGIRequestHandler.version_string = lambda self: "SecureServer"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user