Hi Guys, Why waiting for Google to install libraries? What I have done in my projects is a little workaround so I can use virtualenv as a regular project. It is working as a charm for pure Python libraries. This is the case for Jinja and several other libraries.
What I do is installing the virtualenv within the project: https://github.com/renzon/tekton/tree/master/backend/venv. After installing it and dependencies from requirements I create a symlink inside de my App Engine project folder: https://github.com/renzon/tekton/blob/master/backend/venv/venv.sh#L32. Once you create this symlink, App Engine SDK will upload all the libs which you install in your venv. Finishing the workaround you need add this libraries on path: https://github.com/renzon/tekton/blob/master/backend/appengine/convention.py#L6. I hope it can help you guys. Cheers, Renzo Nuccitelli On Friday, August 21, 2015 at 5:09:21 PM UTC-3, Kaan Soral wrote: > > Well the question says it all, I've been wanting to use {% set %} {% > endset %} with jinja2 for a while - it's available at 2.8 > > (By the way the cloud playground is broken: > https://cloud-playground.appspot.com/playground/?template_url=https:%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fappengine-guestbook-python%2Fblob%2Fpart5-templates%2F#app.yaml > > - it doesn't load, it's the first time I'm seeing the playground - so I'm > not sure how it works when it works) > > I'm interested in alternatives too, if anyone has any > It's for a very specific use case, where I replace sections of translated > phrases with html tags at templates - for example, "A [S]Tag[/S]" becomes > "A <span style='gg'>Tag</span>" etc. > > Storing raw html in variables is practical, otherwise putting htmls into > jinja2 strings gets complicated due to quotation marks > > Without the set/endset, macro's are a nice alternative, but an overkill > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/03d95853-ae18-42fa-bbc9-716885ed36f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
