diff piecrust/wsgiutil/cwdapp.py @ 378:fe8a58817088

serve: Compatibility with `mod_wsgi`.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 09 May 2015 08:37:32 -0700
parents 21687b933193
children d40b744a9d99
line wrap: on
line diff
--- a/piecrust/wsgiutil/cwdapp.py	Fri May 08 09:16:12 2015 -0700
+++ b/piecrust/wsgiutil/cwdapp.py	Sat May 09 08:37:32 2015 -0700
@@ -8,4 +8,6 @@
 root_dir = os.getcwd()
 server = Server(root_dir, sub_cache_dir='prod', enable_debug_info=False)
 app = server.getWsgiApp()
+# Add this for `mod_wsgi`.
+application = app