Can anyone suggest a detailed resource for incorporating django 1.2 templates in our GAE applications? So far i have found
- docs describing how to pin django files and add them to our project
- docs to launch your own django projects in GA
- docs on including libraries 1.0 and 1.1 in our projects
but so far nothing has been described how to use django 1.2 templates in our projects. In particular, how to formulate secret magic at the top of my python script, which will magically convince GAE to use my zipped django library.
I have this in my python script:
import sys sys.path.insert(0, 'django/django.zip')
And, like the GAE tutorial, here, as I draw the template:
template_values = { 'formerror': formerror, 'media': media, 'status': status } path = os.path.join(os.path.dirname(__file__), formtemplate) self.response.out.write(template.render(path, template_values)
But for GAE, there is not enough part to use Django 1.2 to render templates. What is it?
source share