Python CherryPy MVC和Jinja2,删除尾部斜杠

Python CherryPy MVC和Jinja2,删除尾部斜杠,python,html,model-view-controller,jinja2,cherrypy,Python,Html,Model View Controller,Jinja2,Cherrypy,如果我有一个表单并键入localhost/dash?formdata1=sdsaad,它将重定向到localhost/dash/?formdata1=sdsaad。我需要它保持localhost/dash?formdata1=sdsaad的状态,这样我就可以使用表单数据进行处理 我用的是CherryPy 4和Jinja2 我将此用作我的MVC: 这是仪表板链接控制器中的相对数据 @cherrypy.expose def index(self, *kwargs): fail = self.

如果我有一个表单并键入localhost/dash?formdata1=sdsaad,它将重定向到localhost/dash/?formdata1=sdsaad。我需要它保持localhost/dash?formdata1=sdsaad的状态,这样我就可以使用表单数据进行处理

我用的是CherryPy 4和Jinja2

我将此用作我的MVC:

这是仪表板链接控制器中的相对数据

@cherrypy.expose
def index(self, *kwargs):
    fail = self.parsetest(kwargs) #Points to my Model. The model just does a try and except and returns fail on except.
    return self.render_template({'Fail': fail})
这是Base.py中的装入点

cherrypy.tree.mount(DashController(), '/dash', site_config_path)

配置目前在Dash上没有数据

Bump,如果我不是故意的,那么对不起。Bump,如果我不是故意的,那么对不起。