Browse Source

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

master
Gergely Polonkai 7 years ago
parent
commit
37061fe7d7
  1. 3
      basics/views.py
  2. 3
      gergelypolonkaiweb/urls.py

3
basics/views.py

@ -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'))

3
gergelypolonkaiweb/urls.py

@ -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$',

Loading…
Cancel
Save