diff piecrust/admin/views/dashboard.py @ 961:b1a00c2c0c7f

admin: Use URL routes for static assets. This removes the need for `base_url` and other workarounds for when the admin panel is under a sub-folder.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 07 Oct 2017 12:16:04 -0700
parents 8101692fdc11
children 8adc27285d93
line wrap: on
line diff
--- a/piecrust/admin/views/dashboard.py	Sat Oct 07 12:13:57 2017 -0700
+++ b/piecrust/admin/views/dashboard.py	Sat Oct 07 12:16:04 2017 -0700
@@ -10,7 +10,7 @@
 from piecrust.uriutil import split_uri
 from ..textutil import text_preview
 from ..blueprint import foodtruck_bp, load_user
-from ..views import with_menu_context, with_base_data
+from ..views import with_menu_context
 
 
 logger = logging.getLogger(__name__)
@@ -135,7 +135,6 @@
             "User '%s' doesn't exist or password is incorrect." %
             username)
 
-    with_base_data(data)
     return render_template('login.html', **data)