Mercurial > piecrust2
view piecrust/wsgiutil/__init__.py @ 773:87f1e79d3fbe
prepare: Use the same convention as other commands with sub-commands.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 03 Jul 2016 15:56:35 -0700 |
parents | 81d9c3a3a0b5 |
children | b4156f5d4368 |
line wrap: on
line source
from piecrust.serving.server import WsgiServer def get_app(root_dir, cache_key='prod', enable_debug_info=False): app = WsgiServer(root_dir, cache_key=cache_key, enable_debug_info=enable_debug_info) return app