Mercurial > piecrust2
view piecrust/wsgiutil/__init__.py @ 585:25df894f9ab9
internal: Some fixes to the new app configuration.
* Tweak order of source registration.
* Add some missing default settings.
* Fix some validation code.
* Add better error handling to validation.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 02 Jan 2016 16:39:26 -0800 |
parents | cc6f3dbe3048 |
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