Mercurial > piecrust2
view piecrust/wsgiutil/__init__.py @ 553:cc6f3dbe3048
serve: Extract some of the server's functionality into WSGI middlewares.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 08 Aug 2015 22:01:47 -0700 |
parents | d40b744a9d99 |
children | 81d9c3a3a0b5 |
line wrap: on
line source
from piecrust.serving.server import WsgiServer def get_app(root_dir, sub_cache_dir='prod', enable_debug_info=False): app = WsgiServer(root_dir, sub_cache_dir=sub_cache_dir, enable_debug_info=enable_debug_info) return app