在 App Engine 上运行 Mezzanine
我正在寻找一个博客解决方案,可以在部署在 Google App Engine 上的 Django 项目中运行。经过一番审查后,我决定尝试 Mezzanine v0.11.3。我已经克服了使用其他人在 App Engine 上部署的建议在项目中使用此链接的障碍:http://groups.google.com/group/mezzanine-users/browse_thread/thread/c8b13c41a3168c94。
夹层现在显示在管理中,但单击博客帖子会导致多表继承失败。我相信这是由于 Mezzanine 通过使用 Django 站点框架实现了多站点支持功能。
有人克服这个问题吗?我将尝试使用 django-dbindexer 但我不相信它会起作用。
*更新:据我所知,AllButtonsPressed 的人员还没有任何神奇的解决方案来解决 ManyToManyField 问题,所以我认为这个选项已经死了。
如果没有人知道解决方法,你们中有人知道我可以在 App Engine 上的 Django 项目中运行的一个好的博客解决方案吗?
*更新:找到这篇文章将 Blogger 集成到 Google App Engine 应用中。将调查这是否能解决问题。
*目前状态: 我一直没能解决这个问题,而且我认为目前还无法解决。我想我会分享我通过调查发现的东西;也许有人可以继续并提出解决方案。
尝试过的选项:
博客
- 我查看了这个,但它是一个Python 解决方案,不是 Django 解决方案,我 不想做转动它的工作 到一个
字节流( https://bitbucket.org/piranha/byteflow/wiki/Home ) 注意:
- 设计为独立的,需要一个 对settings.py进行大量编辑, 包含 12 个附加应用程序以及 覆盖帐户设置加上 每次升级时都要手动调整。
AppEngineBlog ( http://code.google.com/p/appengineblogsoftware/ ) 注释:
- 用 appengine 特定代码编写, 未维护,没有示例站点 可以查看 Coltrane 的外观
( http://code.google.com /p/coltrane-blog/source/browse/ ):
- 根据标准构建的简单博客 Django 功能没有开发 还是支持,基本上需要用到 这段代码作为开发你的 自己的博客并从那里转到
Flother ( https://github.com/flother/flother ):
- 找到通过 Coltrane 评论,可能 可嵌入,没有太多麻烦, 需要 8 个额外的应用程序,照片 并放置组件 ManyToManyFields 必须 被重写或这些组件 已禁用
Blogger API (http://code.google.com/apis/blogger/ ) :
- 无论您身在何处,都可以使用 Blogger 希望获得完整的功能 博客功能,然后使用 Blogger API 可将内容传送到任何 您希望显示它的其他网站
Flother 接近我需要的内容,但仍然存在相当多的不确定性和努力。我目前将 Blogger 选项作为我唯一可行的选择。
I am looking for a blog solution to run inside a Django project deployed on the Google App Engine. After a bit of review I decided to try out Mezzanine v0.11.3. I've overcome the hurdle of getting it in project using the advice of others deploying on App Engine at this link: http://groups.google.com/group/mezzanine-users/browse_thread/thread/c8b13c41a3168c94.
Mezzanine is now showing up in the Admin, but clicking on Blog posts leads to a multi-table inheritance failure. I believe that this is due to multi-site support functionality in Mezzanine via use of the Django sites framework.
Has anyone overcome this issue? I'm going to try to use django-dbindexer but I'm not confident it will work.
*Update: as far as I can tell, the folks at AllButtonsPressed don't have any magic solutions to work around ManyToManyField issues yet, so I think that option is dead.
If no one knows a work around, do any of you know of a good blog solution I can run inside a Django project on the App Engine?
*Update: found this post Integrating Blogger into a Google App Engine App. Will investigate if this solves the problem.
*Current Status:
I have not been able to solve this problem and I don't think it is currently solvable. Thought I would share what I found through my investigations though; maybe someone out there can carry on and come up with a solution.
Options tried:
Bloog
- I looked this over but it is a Python
solution, not a Django solution and I
didn't want to do the work to turn it
into one
Byteflow ( https://bitbucket.org/piranha/byteflow/wiki/Home ) notes:
- designed to be standalone, will need a
lot of edits to settings.py,
inclusion of 12 additional apps and
overrides on account settings plus
hand tuning at every upgrade.
AppEngineBlog ( http://code.google.com/p/appengineblogsoftware/ ) notes:
- written in appengine specific code,
not maintained, no example sites
available to see how it looks
Coltrane ( http://code.google.com/p/coltrane-blog/source/browse/ ):
- simple blog constructed from standard
Django functionality no development
or support, basically need to use
this code as a way to develop your
own blog and go from there
Flother ( https://github.com/flother/flother ):
- found via Coltrane comments, probably
embeddable without too much trouble,
requires 8 additional apps,the photos
and places components have
ManyToManyFields that would have to
be re-written or these components
disabled
Blogger API ( http://code.google.com/apis/blogger/ ):
- use Blogger at whatever location you
wish to gain fully functional
blogging capabilities, then use
Blogger API to deliver content to any
other site you wish to display it
Flother came close to what I need but there is still a fair bit of uncertainty and effort there. I'm proceeding with the Blogger option as the only viable choice for me at this time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
好吧,据我所知,除了深入代码并删除与 ManyToManyField 相关的任何内容(站点支持、照片和......其他内容)之外,没有其他方法可以让 Mezzanine 在 GAE 上运行。不记得是什么了)。
我在那里能找到的唯一有可能添加到现有项目中、仅使用可移植的 Django 代码(特定于应用程序引擎)并在 App Engine 上运行的是 http://www.allbuttonspressed.com/projects/allbuttonspressed 。我实际上还没有尝试集成它,因为我要看看 Blogger 解决方案是否有效。
Well, as far as I can see, there is no way to get Mezzanine running on GAE other than wading into the code and ripping out anything relating to a ManyToManyField (Sites support, Photos and ... something else. Can't remember what).
The only thing I could find out there that has the potential to be added to an existing project, uses only portable Django code (app engine specific) and runs on App Engine is http://www.allbuttonspressed.com/projects/allbuttonspressed . I haven't actually tried to integrate it yet because I'm going to see if the Blogger solution works.
我一直在我的两个博客中使用 bloog ,到目前为止没有遇到任何严重的问题 - 有一些小怪癖这有时会让人有点不愉快,但并不影响交易。
I've been using bloog for two of my blogs without any serious troubles so far - there are few little quirks that make it mildly unpleasant sometimes but nothing that's been a deal breaker.
我使用 Blogger 解决方案,它工作得很好,特别是当您只有一个人并且运行整个网站时。
当你希望别人帮助你时,问题就来了。现在,每个 CSS 和设计决策都需要发送给负责 django 模板的程序员。具有真正所见即所得编辑器的 CMS 可以让您将工作交付给营销/设计人员,并让您专注于有趣的事情。
我遇到了 对 Django 的各种博客引擎的不错的评论,但是,还不清楚它们与 GAE 的集成程度如何。
I use the Blogger solution and it works fine, especially if you're only one person and you run the whole site.
The problem comes when you want to others to help you out. Now every css and design decision needs to be sent to a programmer who hacks away at django templates. A CMS with a real WYSIWYG editor would allow you to ship off that work to marketing/design people and let you focus on the fun stuff.
I came across a decent review of the various blogging engines for Django, however, it's unclear how well they each integrate with GAE.
我已经在 GAE 中成功部署了 Mezzanine/Cartridge,但我还没有在 github 或类似的地方记录它。当然它可以使用 python 2.7 和 django 1.5。此外,它还可以与 Google Cloud SQL 和 GAE 提供的本地文件系统配合使用。它还可以与 google Gmail 工具配合使用。对于缩略图,我使用本地 GAE 功能。
它需要几个额外的库,例如 boto,但效果很好。
请参阅 midevocional365.appspot.com/ 中的简短演示
I have deployed Mezzanine/Cartridge in GAE succesfully but I have not documented it yet in github or something like that. It works using python 2.7 of course and django 1.5. Additionally it works with Google Cloud SQL, and the local file system GAE provides. It additionally works with google gmail facilities. For thumbnailing I am using local GAE functionality.
It requires several additional libraries like boto, but it works well.
See a short demo in midevocional365.appspot.com/