From 532277dc27d31f655b00b0c2fbedbfb9c8778038 Mon Sep 17 00:00:00 2001 From: Lance Edgar <lance@wuttaproject.org> Date: Wed, 18 Dec 2024 15:10:14 -0600 Subject: [PATCH] add generic ASGI entry point, for uvicorn etc. --- .../{{ cookiecutter.package_name }}/web/app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/{{ cookiecutter.repo_name }}/{{ cookiecutter.package_name }}/web/app.py b/{{ cookiecutter.repo_name }}/{{ cookiecutter.package_name }}/web/app.py index 28e98d7..4378626 100644 --- a/{{ cookiecutter.repo_name }}/{{ cookiecutter.package_name }}/web/app.py +++ b/{{ cookiecutter.repo_name }}/{{ cookiecutter.package_name }}/web/app.py @@ -33,3 +33,10 @@ def make_wsgi_app(): Make and return the WSGI app (generic entry point). """ return base.make_wsgi_app(main) + + +def make_asgi_app(): + """ + Make and return the ASGI app. + """ + return base.make_asgi_app(main)