I have a Google App Engine Python script trying to pass the variable "time" as a strftime()
call. I have jinja2 set up to read the html file with {{time}}
in it as that variables destination
class MainPage(BlogHandler):
time = ''
def get_time(you):
return strftime('%U %A',gmtime())
def get(self):
time = self.get_time
self.render('front.html',time = time)
When I render/write out the whole thing into a simple div tag I get an object memory locator rendered in html
<bound method MainPage.get_time of <main.MainPage object at 0x1030f0610>>
obviously its not processing this out as a string. Am I using the wrong time function, is this a GAE issue? is this a Jinja2 issue? Is this a python issue? I'm clearly not sure how to follow up and resolve this. Thanks or any good critical advice.
All I want is to render a formattable time function to a string so i can use it in GAE scripts.