Google validator link is now a simple empty HttpResponse instead of a full-blown view

This commit is contained in:
Gergely Polonkai 2014-06-22 21:11:41 +00:00
parent 01a641a4c9
commit 37061fe7d7
2 changed files with 2 additions and 4 deletions

View File

@ -7,9 +7,6 @@ from django.core.urlresolvers import reverse
from StringIO import StringIO
from xhtml2pdf import pisa
def googlevalidator(request):
return HttpResponse('')
def resumelink(request):
return request.build_absolute_uri(reverse('basics:resumepdf'))

View File

@ -1,6 +1,7 @@
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.contrib import admin
from django.http import HttpResponse
admin.autodiscover()
@ -17,7 +18,7 @@ urlpatterns = patterns('',
),
url(
r'^google150e54bda5f96d97',
'basics.views.googlevalidator'
lambda r: HttpResponse("", mimetype="text/plain")
),
url(
r'^robots\.txt$',