Django 使用Google Webmater工具时出现HttpResponse错误

Django 使用Google Webmater工具时出现HttpResponse错误,django,google-webmaster-tools,Django,Google Webmaster Tools,我正试图使用谷歌网站管理员工具如下 我实现了我的url,正如它所说的 (r'^googlece9fb428b0c84a39\.html$', lambda r: HttpResponse("google-site-verification: googlece9fb428b0c84a39.html", mimetype="text/plain")), 但是我在访问url时遇到以下错误: NameError at /googlece9fb428b0c84a39.html global name '

我正试图使用谷歌网站管理员工具如下

我实现了我的url,正如它所说的

(r'^googlece9fb428b0c84a39\.html$', lambda r: HttpResponse("google-site-verification: googlece9fb428b0c84a39.html", mimetype="text/plain")),
但是我在访问url时遇到以下错误:

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

只需要从django.http导入HttpResponse。http从django.http导入HttpResponse

您从django.http导入HttpResponse了吗?谢谢!只需要导入它