tornado运行:TypeError: 'str' object is not callable

tornado运行:TypeError: 'str' object is not callable_第1张图片

网站无法正常运作,并提示:TypeError: 'str' object is not callable

def make_app():
    return web.Application([(r'/index',indexhander),
                             (r'/code',codecreatehander),
                             (r'/codesign',codesignhander)],
                            static_path,
                            template_path,)

参数递错误,改为static_path=static_path,template_path=template_path

你可能感兴趣的:(疑难杂症)