Google App Engine (python): TemplateSyntaxError: 'for' statements with five words should end in 'reversed?

This is using the web app framework, not Django But framework apart, you must be using Django's templating -- and apparently in an old version, which does not support the "automatic unpacking" style of for probably the 0.96 version that's the default for App Engine. To use any part of more modern Django (including "just the templates") you must have a settings. Py file and do: import os os.

Environ'DJANGO_SETTINGS_MODULE' = 'settings' from google.appengine. Dist import use_library use_library('django', '1.1') as per the docs After that you can from django import template and you'll be using the 1.1 version of Django's templating engine.

This is using the web app framework, not Django. But framework apart, you must be using Django's templating -- and apparently in an old version, which does not support the "automatic unpacking" style of for -- probably the 0.96 version that's the default for App Engine. To use any part of more modern Django (including "just the templates") you must have a settings.Py file and do: import os os.

Environ'DJANGO_SETTINGS_MODULE' = 'settings' from google.appengine. Dist import use_library use_library('django', '1.1') as per the docs. After that you can from django import template and you'll be using the 1.1 version of Django's templating engine.

Martellipedia does it again! Thanks. – Phil Apr 2 '10 at 14:42 @Phil, you're welcome!

-) – Alex Martelli Apr 2 '10 at 15:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions