move monkey patching

This commit is contained in:
Kenneth Kehl
2025-07-28 09:59:24 -07:00
parent 143d57440c
commit b7d96225fb
2 changed files with 8 additions and 8 deletions

View File

@@ -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"