Changeset 640ca78 in rattail-demo


Ignore:
Timestamp:
11/21/2022 10:08:55 PM (2 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
16fdfd5
Parents:
e6d4f7e
Message:

Allow running web app via ASGI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail_demo/web/app.py

    re6d4f7e r640ca78  
    33Pyramid web application
    44"""
    5 
    6 from __future__ import unicode_literals, absolute_import
    75
    86from tailbone import app
     
    4139
    4240    return pyramid_config.make_wsgi_app()
     41
     42
     43def asgi_main():
     44    """
     45    This function returns an ASGI application.
     46    """
     47    from tailbone.asgi import make_asgi_app
     48
     49    return make_asgi_app(main)
Note: See TracChangeset for help on using the changeset viewer.