diff --git a/pyproject.toml b/pyproject.toml index 6253eb4..c661467 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,6 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "flask-boilerplate" -dynamic = ["version"] description = "" authors = ["nhymxu"] readme = "README.md" @@ -15,6 +14,7 @@ python = "^3.12" uvicorn = {extras = ["standard"], version = "^0.30.0"} gunicorn = "^22.0.0" +a2wsgi = "^1.10.6" flask = {extras = ["async", "dotenv"], version= "^3.0.3"} python-dotenv = "^1.0.1" diff --git a/web.py b/web.py index b9231c3..c9c15db 100644 --- a/web.py +++ b/web.py @@ -1,7 +1,7 @@ import base64 import io -from asgiref.wsgi import WsgiToAsgi +from a2wsgi import WSGIMiddleware from dotenv import load_dotenv from flask import send_file @@ -11,7 +11,7 @@ load_dotenv() app = create_app() -asgi_app = WsgiToAsgi(app) +asgi_app = WSGIMiddleware(app) @app.get('/favicon.ico')