werkzeug.routing.BuildError: Could not build url for endpoint '/index'. Did you mean 'qa.index' instead?
考虑是不是url_for中写入的是一个地址,而不是一个函数
next_url = request.values.get('next', url_for('qa.index')) return redirect(next_url)
不要写成:
return redirect({{next_url}})