# HG changeset patch # User Ludovic Chabant # Date 1408981544 25200 # Node ID 73956224eb67cc71bb2c8dc76c9481c6d11aa25d # Parent e522413947916c085e812abe1286f108532cd5d1 Setup the server better. diff -r e52241394791 -r 73956224eb67 piecrust/serving.py --- a/piecrust/serving.py Mon Aug 25 08:45:16 2014 -0700 +++ b/piecrust/serving.py Mon Aug 25 08:45:44 2014 -0700 @@ -76,6 +76,9 @@ # 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) # We'll serve page assets directly from where they are. app.env.base_asset_url_format = '/_asset/%path%'