changeset 1109:6f26e83dfced

admin: Fix another root URL issue for the admin panel.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 18 Feb 2018 20:33:04 -0800
parents b2a34a6ec5e5
children 05fba0b8e21c
files piecrust/serving/wrappers.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/serving/wrappers.py	Sun Feb 18 20:32:30 2018 -0800
+++ b/piecrust/serving/wrappers.py	Sun Feb 18 20:33:04 2018 -0800
@@ -162,7 +162,6 @@
                          serve_site=True,
                          serve_admin=False,
                          is_cmdline_mode=False,
-                         admin_root_url=None,
                          run_sse_check=None):
     app = None
 
@@ -181,7 +180,7 @@
     if serve_admin:
         from piecrust.admin.web import create_foodtruck_app
 
-        admin_root_url = admin_root_url or '/pc-admin'
+        admin_root_url = ('/pc-admin' if is_cmdline_mode else None)
 
         es = {
             'FOODTRUCK_CMDLINE_MODE': is_cmdline_mode,