Django vs App Engine上的webapp2 [英] Django vs webapp2 on App Engine

查看:105
本文介绍了Django vs App Engine上的webapp2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道你对这两个Web框架(Django& webapp2)中哪一个更适合在App Engine平台上使用的看法,为什么?



请不要说两者完全不一样,因为Django更加完整。这两个都是您可以在App Engine中使用的Web框架。

解决方案

在Django和webapp2之间选择真的取决于你重新使用它。在你的问题上,你没有给出任何决定的参数,所以不可能知道哪个是更好的。将它们描述为网络框架,表明您尚未对它们进行多少研究。



Webapp2本质上是一个请求处理程序。它将HTTP请求指向您编写的处理程序。它也很小。



Django有一个请求处理程序。它还有一个模板引擎。它还有一个表单处理器。它也有一个ORM,你可以选择使用,不是。请注意,您可以在CloudSQL上使用ORM,但如果要在HRD上使用ORM,则需要使用Django-nonrel。它还有一个可以使用的插件库,但是如果您使用Django ORM,它们才会工作。它还有一堆第三方库,这也将需要Django ORM。



如果你有可移植性,Django ORM会帮助很多。

你必须做出比较你实际需要的决定。


I would like to know your opinion of which of these two web frameworks (Django & webapp2) is better for using on App Engine Platform, and why?

Please don't say that both are completely different, because Django is much more complete. Both are the "web frameworks" you can use in App Engine.

解决方案

Choosing between Django and webapp2 really depends on what you're using it for. In your question you haven't given any of the parameters for your decision making, so it's impossible to tell which is "better". Describing them both as "web frameworks" shows you haven't done much research into what they are.

Webapp2 is essentially a request handler. It directs HTTP requests to handlers that you write. It's also very small.

Django has a request handler. It also has a template engine. It also has a forms processor. It also has an ORM, which you may choose to use, or not. Note that you can use the ORM on CloudSQL, but you'll need to use Django-nonrel if you want to use the ORM on the HRD. It also has a library of plugins that you can use, but they'll only work if you're using the Django ORM. It also has bunch of 3rd party libraries, which will also require the Django ORM.

If you have portability in mind the Django ORM would help a lot.

You'll have to make your decision comparing what you actually need.

这篇关于Django vs App Engine上的webapp2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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