Created
July 21, 2011 19:56
-
-
Save qoelet/1098060 to your computer and use it in GitHub Desktop.
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
import datetime | |
def dummy_view(request): | |
# view code | |
timestamp = datetime.datetime.now() | |
resp = render_to_response(template_name, { | |
# stuff... | |
'timestamp': timestamp, | |
}, context_instance=RequestContext(request)) | |
# set cache... | |
return resp # i rendered this in a comment tag in the template <!-- {{ timestamp }} --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment