HttpResponse Error Using Google Webmater Tools

I am trying to use Google Webmaster Tools in the following guide

I executed my url when it says

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

But I get the following error while accessing the URL:

 NameError at /googlece9fb428b0c84a39.html global name 'HttpResponse' is not defined 
+2
source share
2 answers

from django.http import HttpResponse

+13
source

just need to import the HttpResponse from django.http

0
source

Source: https://habr.com/ru/post/1493897/


All Articles