Skip to content

Instantly share code, notes, and snippets.

@biodigitals
Last active December 17, 2015 12:19
Show Gist options
  • Select an option

  • Save biodigitals/5609236 to your computer and use it in GitHub Desktop.

Select an option

Save biodigitals/5609236 to your computer and use it in GitHub Desktop.
django
from django.http import HttpResponse
from django.template import RequestContext
from django.shortcuts import render_to_response
def index(request):
return HttpResponse("Hello, world. You're at the poll index.")
def page(request):
template_vars = {}
context=RequestContext(request)
return render_to_response('base.html',template_vars,context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment