Mostrando entradas con la etiqueta Python. Mostrar todas las entradas
Mostrando entradas con la etiqueta Python. Mostrar todas las entradas

jueves, 22 de abril de 2010

Bug using Pyamf with Google App Engine templates

It seems that Pyamf conflicts with the Google App Engine template library.
You may have this error loading a template:

AttributeError: 'module' object has no attribute 'defaulttags'

Perhaps Pyamf includes an older version of Django library .
To workaround write the imports in this order:

from google.appengine.ext.webapp import template
from pyamf.remoting.gateway.google import WebAppGateway

It seems odd but the problem disappears.