Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save igorsobreira/575674 to your computer and use it in GitHub Desktop.
Save igorsobreira/575674 to your computer and use it in GitHub Desktop.
from django.shortcuts import render_to_response
from django.template import RequestContext
def myview(request):
...
return render_to_response('template.html',
{'foo': ['one', 'two']},
context_instance=RequestContext(request))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment