Skip to content

Instantly share code, notes, and snippets.

@igorsobreira
Created September 11, 2010 23:27
Show Gist options
  • Save igorsobreira/575675 to your computer and use it in GitHub Desktop.
Save igorsobreira/575675 to your computer and use it in GitHub Desktop.
from django.views.generic.simple import direct_to_template
def myview(request):
...
return direct_to_template(request, 'template.html',
{'foo': ['one', 'two']})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment