最好的Django功能可以在Google App Engine上工作? [英] Best Django features that do work on Google App Engine?

查看:117
本文介绍了最好的Django功能可以在Google App Engine上工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在App Engine上开始一个新项目,并且布兰登的建议让我想起了。

I'm in the process of starting a new project on App Engine and Brandon's advice made me think.

Django的许多功能都不适用于Google App Engine:管理界面和建模框架为例。

Many features of Django don't work on Google App Engine: the admin interface and the modeling framework for example.

考虑到App Engine内置了一个简单的框架( webapp ),我可以从许多Python模板解决方案(包括Django)中自由选择,而不必将自己重视一个相对较重的重量(但在这种情况下是绝对的)框架,我会错过最多的顶级功能是什么我不跟Django去

Considering that App Engine already has a simple framework built-in ("webapp") and I can freely pick from the many Python templating solutions (including Django's) without tying myself to a relatively heavy weight (but in this case neutered) framework what are the top features that I would miss the most if I don't go with Django?

背景:我只有最小的Django体验,我正在考虑使用 Mako 模板(速度)。

Background: I only have minimal Django experience and I'm considering using Mako templates (for speed).

推荐答案

主要区别在于您已经知道它不支持Admin和Django(优秀)ORM。这并不奇怪,因为Google自己的Datastore API非常好。而您不需要学习GQL来玩它。

The main differences is what you already know that it does not support Admin and Django's (excellent) ORM ofcourse. This isn't surprising, though, since Google's own Datastore API is excellent. And you don't have to learn GQL to play with it.

但是使用Django意味着您可以利用更多的现有功能(Django中间件等)和如果你以后想要从Google App Engine中移除,那么将会有更少的代码重写。

But using Django means that you can take advantage of more existing functionality (Django middleware, etc.) and, should you want to move away from Google App Engine in the future, there will be less code to rewrite.

此外,Google发布了 Google App Engine Helper for Django ,可以帮助您设置GAE Django应用程序。

Also Google released the Google App Engine Helper for Django which can be helpful to you in setting GAE Django app.

所以,我宁愿去使用Django而不是纯webapp的Google App Engine应用程序。

So, i would rather go for Google App Engine applications using Django instead of pure webapp.

请求:
Django现有的功能,我提到,可以采用许多有用的应用程序,大多数是由巨大的DJango社区日益开发的中间件。

Edit on Request: Django's existing functionality i mentioned, can be taken in terms of many useful applications and mostly middlewares being developed by a huge DJango Community day by day.

除了有用的内置-in-Middlewares 由DJango本身提供,还有很多其他可以套用的具体用法。

Apart from useful Built-in-Middlewares provided by DJango itself, there are many others which can suite few specific usage too.

若要命名(这听起来很有趣) :

To name few (which sound interesting to me):

并与他们有效地玩耍有条件的中间战士在Django中执行可以方便。

And to play with them efficiently "Conditional middleware execution in Django" can be handy.

搜索更多,你会发现更多。

Search for more, you will find more.

这篇关于最好的Django功能可以在Google App Engine上工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆