Python 为什么url X与regex不匹配,gae webapp2相关
为什么会这样Python 为什么url X与regex不匹配,gae webapp2相关,python,google-app-engine,webapp2,Python,Google App Engine,Webapp2,为什么会这样 /download/vzC43Wji33B21DRJYSoYFQ%3D%3D 与此不匹配 app = webapp2.WSGIApplication([('/', MainHandler), ('/upload', UploadHandler), ('/download/<resource:>', DownloadHandler)],
/download/vzC43Wji33B21DRJYSoYFQ%3D%3D
与此不匹配
app = webapp2.WSGIApplication([('/', MainHandler),
('/upload', UploadHandler),
('/download/<resource:>', DownloadHandler)],
debug=True)
app=webapp2.WSGIApplication([('/',MainHandler),
('/upload',UploadHandler),
(“/download/”,DownloadHandler)],
debug=True)
我收到一个404错误,DownloadHandler根本没有执行。您使用带有URL模板的简单路由。要使用URL模板,必须使用webapp2.Route类。请参阅此文档:我猜无论什么%3D都不是允许的url字符?