Last active
December 17, 2015 12:19
-
-
Save biodigitals/5609236 to your computer and use it in GitHub Desktop.
django
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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