add generic WSGI entry point, for uvicorn etc.
This commit is contained in:
parent
2c251706ab
commit
f1dcec111c
|
@ -8,7 +8,7 @@ from wuttaweb import app as base
|
||||||
|
|
||||||
def main(global_config, **settings):
|
def main(global_config, **settings):
|
||||||
"""
|
"""
|
||||||
This function returns a Pyramid WSGI application.
|
Make and return the WSGI app (Paste entry point).
|
||||||
"""
|
"""
|
||||||
# prefer {{cookiecutter.project_name}} templates over wuttaweb
|
# prefer {{cookiecutter.project_name}} templates over wuttaweb
|
||||||
settings.setdefault('mako.directories', [
|
settings.setdefault('mako.directories', [
|
||||||
|
@ -26,3 +26,10 @@ def main(global_config, **settings):
|
||||||
pyramid_config.include('{{cookiecutter.package_name}}.web.views')
|
pyramid_config.include('{{cookiecutter.package_name}}.web.views')
|
||||||
|
|
||||||
return pyramid_config.make_wsgi_app()
|
return pyramid_config.make_wsgi_app()
|
||||||
|
|
||||||
|
|
||||||
|
def make_wsgi_app():
|
||||||
|
"""
|
||||||
|
Make and return the WSGI app (generic entry point).
|
||||||
|
"""
|
||||||
|
return base.make_wsgi_app(main)
|
||||||
|
|
Loading…
Reference in a new issue