Mercurial > piecrust2
diff foodtruck/web.py @ 602:c6bc0ef03f82
admin: Better UI for publishing websites.
* Support multiple publish targets.
* Dedicated UI for publishing.
* Some UI polish.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 27 Jan 2016 18:02:25 -0800 |
parents | effbc78b5528 |
children | 8e1b38632702 |
line wrap: on
line diff
--- a/foodtruck/web.py Sun Jan 24 10:42:33 2016 -0800 +++ b/foodtruck/web.py Wed Jan 27 18:02:25 2016 -0800 @@ -22,7 +22,7 @@ l = logging.getLogger() l.setLevel(logging.DEBUG) -app.logger.debug("Using FoodTruck admin root: %s" % admin_root) +logger.debug("Using FoodTruck admin root: %s" % admin_root) def after_this_request(f): @@ -73,7 +73,7 @@ if not app.config['DEBUG']: - app.logger.debug("Registering exception handlers.") + logger.debug("Registering exception handlers.") @app.errorhandler(FoodTruckConfigNotFoundError) def _on_config_missing(ex): @@ -81,7 +81,8 @@ @app.errorhandler(InvalidSiteError) def _on_invalid_site(ex): - data = {'error': 'invalid_site', 'exception': str(ex)} + data = {'error': "The was an error with your configuration file: %s" % + str(ex)} return render_template('error.html', **data) @@ -139,12 +140,12 @@ app.bcrypt = Bcrypt(app) -import foodtruck.views.baking # NOQA import foodtruck.views.create # NOQA import foodtruck.views.dashboard # NOQA import foodtruck.views.edit # NOQA import foodtruck.views.menu # NOQA import foodtruck.views.preview # NOQA +import foodtruck.views.publish # NOQA import foodtruck.views.settings # NOQA import foodtruck.views.sources # NOQA