Mercurial > piecrust2
changeset 53:73956224eb67
Setup the server better.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 25 Aug 2014 08:45:44 -0700 |
parents | e52241394791 |
children | a46354306738 |
files | piecrust/serving.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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%'