这是为应用程序声明地址的代码
def includeme(config):
a = config.add_handler
a('fileupload', '{lang}/case/fileupload{sep:/*}{name:.*}', ImageUpload)
这里是 ImageUpload 类
@action(route_name='fileupload')
class ImageUpload():
def __init__(self,request):
@action(request_method='GET', renderer="json")
def get(self):
@action(request_method='POST', xhr=True, accept="application/json", renderer='json')
def post(self):
当我尝试转到 ru/case/fileupload/ 时,它什么也得不到,问题是什么以及如何解决?