【发布时间】:2014-03-25 08:59:18
【问题描述】:
我正在尝试按照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-search-console