I have started using Jinja2 as my templating engine on Google App Engine (in Python).
My question is this: Will bytecode caching work in production? It is working very well on the development server, but I read somewhere that bytecode caching depends on the marshal module, which is not supported in App Engine. This answer to a different question provides a possible solution by changing marshal to use pickle methods. Has anyone tried this?
In general, is there anything else that I should take into consideration when using Jinja2 with App Engine?
Any help would be greatly appreciated!
Thanks.
picklecan't be used for code objects (that's why Jinja2 usesmarshalto persist its compiled template bytecode).marshalis available in the local development environment, but it is an empty module in the deployed GAE environment (see code.google.com/appengine/docs/python/runtime.html#Pure_Python). - Cameron