gpt4 book ai didi

django - Google 网站站长工具出现 HttpResponse 错误

转载 作者:行者123 更新时间:2023-12-02 08:19:14 25 4
gpt4 key购买 nike

我正在尝试按照此 guide 使用 Google 网站管理员工具

我按照它的说明实现了我的网址

(r'^googlece9fb428b0c84a39\.html$', lambda r: HttpResponse("google-site-verification: googlece9fb428b0c84a39.html", mimetype="text/plain")),

但访问网址时出现以下错误:

NameError at /googlece9fb428b0c84a39.html
global name 'HttpResponse' is not defined

最佳答案

从 django.http 导入 HttpResponse

关于django - Google 网站站长工具出现 HttpResponse 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21975206/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com