Mercurial > piecrust2
comparison 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 |
comparison
equal
deleted
inserted
replaced
951:c50ff76e0596 | 952:94fd4f07da83 |
---|---|
92 | 92 |
93 @foodtruck_bp.before_request | 93 @foodtruck_bp.before_request |
94 def _setup_foodtruck_globals(): | 94 def _setup_foodtruck_globals(): |
95 def _get_site(): | 95 def _get_site(): |
96 root_dir = current_app.config['FOODTRUCK_ROOT_DIR'] | 96 root_dir = current_app.config['FOODTRUCK_ROOT_DIR'] |
97 return SiteInfo(root_dir, debug=current_app.debug) | 97 return SiteInfo(root_dir, |
98 url_prefix=foodtruck_bp.url_prefix, | |
99 debug=current_app.debug) | |
98 | 100 |
99 g.site = LazySomething(_get_site) | 101 g.site = LazySomething(_get_site) |
100 | 102 |
101 | 103 |
102 @foodtruck_bp.after_request | 104 @foodtruck_bp.after_request |