diff piecrust/serving.py @ 256:da5e6e00fb41

bake/serve: Make previewed and baked URLs consistent. The preview server now handles the `pretty_urls` setting correctly instead of forcing it. The `trailing_slash` and `pagination_suffix` setting are also doing the same between the 2 systems.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 22 Feb 2015 22:01:58 -0800
parents c1d4e86a3918
children 7ec06ec14247
line wrap: on
line diff
--- a/piecrust/serving.py	Fri Feb 20 23:44:23 2015 -0800
+++ b/piecrust/serving.py	Sun Feb 22 22:01:58 2015 -0800
@@ -130,7 +130,6 @@
         # Create the app for this request.
         app = PieCrust(root_dir=self.root_dir, debug=self.debug)
         app.config.set('site/root', '/')
-        app.config.set('site/pretty_urls', True)
         app.config.set('server/is_serving', True)
         if (app.config.get('site/enable_debug_info') and
                 '!debug' in request.args):