Django-“ fulltext = request.GET ['fulltext']”在我添加请求返回渲染html到函数后停止工作

时间:2019-07-02 03:23:33

标签: html django request return render

new Promise

全文= request.GET ['全文']

添加后将停止工作

def count(request):
    fulltext = request.GET['fulltext']
    return render(request, 'count.html')

该功能。

如果我不添加返回渲染,它将给我ValueError:

异常值:
视图wordcount.views.count没有返回HttpResponse对象。它返回None。

return render(request, 'count.html')

1 个答案:

答案 0 :(得分:0)

尝试一下

This file might be unavailable right now due to heavy traffic. Try again.