I am trying my first python2.7 GAE apps. Everything goes smoothly in the
GAE python2.7 Getting Started guild, except the chapter Using Templates.
http://code.google.com/appengine/docs/python/gettingstartedpython27/templates.html
I have added the lines in my app.yaml:
libraries:
- name: jinja2
version: latest
I have also changed my helloworld.py to import jinja2 module.
And errors:
ERROR 2011-11-08 15:01:12,371 wsgi.py:170]
Traceback (most recent call last):
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py",
line 168, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py",
line 206, in _LoadHandler
handler = __import__(path[0])
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py",
line 640, in Decorate
return func(self, *args, **kwargs)
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py",
line 1756, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py",
line 640, in Decorate
return func(self, *args, **kwargs)
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py",
line 1628, in FindAndLoadModule
description)
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py",
line 640, in Decorate
return func(self, *args, **kwargs)
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py",
line 1571, in LoadModuleRestricted
description)
File "/Users/kai/Documents/AppEngine/helloworld/helloworld.py", line 1,
in <module>
import jinja2
ImportError: No module named jinja2
How can I use jjinja2 template engine in the GAE 1.6 SDK?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/bQBghm-hawAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.