views.py 282 B

123456789101112
  1. from django.http import HttpResponse
  2. from django.template import RequestContext, loader
  3. from django.shortcuts import render
  4. def index(request):
  5. context = {'hello': 'world'}
  6. return render(request, 'hackathon/index.html', context)
  7. def test(request):
  8. return HttpResponse('meow')