我试图在我的Django App engine项目中实现消息中间件,但它给出了一个错误消息,如:
ImproperlyConfigured: Error importing middleware mediautils.middleware: "No module named messages"
我遵循了链接http://djangoadvent.com/1.2/messages-rest-us/来实现它。不能将此中间件与Google App engine一起使用吗?如果是这样的话,有没有其他选择来获得与谷歌应用引擎和Django相同的功能?
要让它在谷歌应用程序引擎上运行,需要做哪些更改?
请提个建议。
提前谢谢。
发布于 2010-09-06 11:12:54
我使用以下代码实现了相同的功能:
from django.contrib.auth.models import Message
Message(user=request.user, message="Date Updated Successfully").put()
不过
request.user.message_set.create(message=“数据更新成功”)
不起作用。
发布于 2010-07-21 07:45:30
GAE is 1.1中包含的最新Django;新的消息传递框架是在1.2中添加的。
https://stackoverflow.com/questions/3297165
复制相似问题