将实时系统从 App Engine Helper 移植到 App Engine Patch
我正在运行一个实时系统,目前每天提供大约 20K 页面,该系统基于 App Engine Helper (Python),并具有 AppEngine 实用程序提供的会话支持。
我一直遇到的一个问题是会话偶尔会随机注销。我想尝试使用 App Engine 补丁,因为它具有“本机”django 会话支持,但我担心这可能会像进行大脑移植一样。具体来说,目前的数据库模型都是继承自App Engine Helper提供的BaseModel。而App Engine Patch则没有这种继承性。
有谁知道是否可以将实时系统从 App Engine Helper 迁移到 App Engine Patch?如果是这样,在尝试这种转变之前,您有什么建议或警告我应该注意吗?
谢谢您和亲切的问候 亚历克斯
I am running a live system that is currently serving about 20K pages a day which is based on App Engine Helper (Python) with session support provided by AppEngine utilities.
One problem that I have been having is that sessions are occasionally randomly logging out. I would like to try using the App Engine Patch, since it has "native" django session support, but I am worried that this is possibly going to be like doing a brain transplant. Specifically, current database models are all inhereted from BaseModel provided by the App Engine Helper. While, App Engine Patch does not have this inheritance.
Does anyone know if it is possible to migrate a live system from App Engine Helper to App Engine Patch? If so, do you have any advice or warnings that I should heed, before attempting this transition?
Thank you and kind regards
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过进一步调查,我发现较新版本的 Django 和 App Engine Helper 内置了对会话的支持。迁移到这个系统后,我随机丢失会话的问题已经解决。
亚历克斯
After further investigations, I discovered that newer versions of Django and App Engine Helper have built in support for sessions. After migrating to this system, my problems of randomly losing sessions have been resolved.
Alex
您应该考虑将系统移植到 App Engine Patch,而是< a href="http://www.allbuttonspressed.com/projects/django-nonrel" rel="nofollow noreferrer">Django-nonrel (由 app-engine-patch 作者提供)。
我从 google-app-engine-django 和 app-engine-patch 迁移到 Django-nonrel 是因为前两个不再维护。
You should think about porting your system not to App Engine Patch but to Django-nonrel (by app-engine-patch authors).
I moved from google-app-engine-django and app-engine-patch to Django-nonrel is because first two are not maintained any more.