2013-10-01 21:40:42 +00:00
|
|
|
from django.shortcuts import render
|
2013-10-14 16:07:15 +00:00
|
|
|
from django.contrib.sites.models import get_current_site
|
2013-10-02 11:22:36 +00:00
|
|
|
from django.http import HttpResponse
|
|
|
|
|
|
|
|
def googlevalidator(request):
|
|
|
|
return HttpResponse('')
|
2013-10-01 21:40:42 +00:00
|
|
|
|
|
|
|
def resume(request):
|
2013-10-14 16:07:15 +00:00
|
|
|
return render(request, 'basics/resume.html', { 'site': get_current_site(request) })
|
2013-10-01 21:40:42 +00:00
|
|
|
|
|
|
|
def about(request):
|
|
|
|
return render(request, 'basics/about.html', {})
|
|
|
|
|
|
|
|
def disclaimer(request):
|
|
|
|
return render(request, 'basics/disclaimer.html', {})
|
2014-06-14 17:09:10 +00:00
|
|
|
|
|
|
|
def notfound(request):
|
2014-06-16 12:09:42 +00:00
|
|
|
body = render_to_string('basics/notfound.html', {})
|
|
|
|
return HttpResponse(body, status_code = 404)
|
2014-06-14 17:09:10 +00:00
|
|
|
|
|
|
|
def serverror(request):
|
2014-06-16 12:09:42 +00:00
|
|
|
body = render_to_string('basics/serverror.html', {})
|
|
|
|
return HttpResponse(body, status_code = 500)
|
2014-06-14 17:09:10 +00:00
|
|
|
|
|
|
|
def forbidden(request):
|
2014-06-16 12:09:42 +00:00
|
|
|
body = render_to_string('basics/forbidden.html', {})
|
|
|
|
return HttpResponse(body, status_code = 403)
|
2014-06-14 17:09:10 +00:00
|
|
|
|
|
|
|
def badrequest(request):
|
2014-06-16 12:09:42 +00:00
|
|
|
body = render_to_string('basics/badrequest.html', {})
|
|
|
|
return HttpResponse(body, status_code = 400)
|