Filipe Ferminiano
Filipe Ferminiano

Reputation: 8791

HttpResponse error with Google Webmater Tools

I'm trying to use Google Webmaster Tools following this guide

I implemented my url as it says

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

But I'm getting the following error when acessing the url:

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

Upvotes: 2

Views: 5686

Answers (2)

Max
Max

Reputation: 1548

from django.http import HttpResponse

Upvotes: 13

Filipe Ferminiano
Filipe Ferminiano

Reputation: 8791

just need to import HttpResponse from django.http

Upvotes: 0

Related Questions