Created
September 11, 2010 23:27
-
-
Save igorsobreira/575675 to your computer and use it in GitHub Desktop.
This file contains 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.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