Mercurial > piecrust2
diff piecrust/admin/blueprint.py @ 952:94fd4f07da83
admin: Fix more URL prefix issues, improve publishing.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 05 Oct 2017 00:29:14 -0700 |
parents | 7ecb946bfafd |
children | 98c7dd6ea4ac |
line wrap: on
line diff
--- a/piecrust/admin/blueprint.py Thu Oct 05 00:28:34 2017 -0700 +++ b/piecrust/admin/blueprint.py Thu Oct 05 00:29:14 2017 -0700 @@ -94,7 +94,9 @@ def _setup_foodtruck_globals(): def _get_site(): root_dir = current_app.config['FOODTRUCK_ROOT_DIR'] - return SiteInfo(root_dir, debug=current_app.debug) + return SiteInfo(root_dir, + url_prefix=foodtruck_bp.url_prefix, + debug=current_app.debug) g.site = LazySomething(_get_site)