我把整个flask转换后为啥获取不到url里面的参数
thewholeworld opened this issue · comments
thewholeworld commented
例子:
@blueprint.route('/string:id/', methods=['GET'])
def get(id):
return id
TypeError: get() takes no keyword arguments
thewholeworld commented
找到问题了,编译工具cython有一个参数需要加上,代码在py2sec_build.py.template文件中,最后一行ext_modules修改为:
ext_modules = cythonize(extentions, nthreads=%s, build_dir="tmp_build", quiet=%s, compiler_directives=compiler_directives)
thewholeworld commented
找到问题了,编译工具cython有一个参数需要加上,代码在py2sec_build.py.template文件中,最后一行ext_modules修改为:
ext_modules = cythonize(extentions, nthreads=%s, build_dir="tmp_build", quiet=%s, compiler_directives=compiler_directives)