Django,Turbo Gears,Web2Py,哪个更好? [英] Django, Turbo Gears, Web2Py, which is better for what?

查看:168
本文介绍了Django,Turbo Gears,Web2Py,哪个更好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想到了一个项目,这样做值得终于陷入编程中。



在阅读了很多东西之后,我和其他地方设置Python是我现在学习的,通过C#或java。最令人信服的是Paul Graham实际上是编程语言和Lisp的游览,尽管Arc在实验阶段,现在不能帮助我做这个网络应用程序。



<对于网络应用程序,我已经检查了Django,Turbo Gears和Py2Web。尽管花费大量的时间阅读,我仍然不知道我应该使用哪一个。



1)Django 肯定有最好的在线展示和一个很好的现场教程,他们肯定知道如何炫耀他们的东西。



2)Web2Py 吸引了我的无需要安装 - 并且要求Django看起来很复杂。但是,当你在他们的网站上挖掘时,你很快就会发现几年内没有被更新的内容,外部连接不正确...该网站上有一些幽灵让人不太熟悉项目,如果可能是简化的话。 / p>

3)Turbo Gears ...我也猜测它的模块化。写了它的人喜欢它...我找不到任何可能使Django特别的东西。



我还没有决定使用IDE,虽然我在这里阅读了所有的Intellisense代码完成帖子的答案。显示额外的代码片段对于像我这样的noobs来说也是很酷的,但我想我应该首先选择我的网页框架,然后选择一个可以很好的编辑器。



由于可能没有一个框架是最好的一切,我会给一些我想要构建的应用程序的细节:



它将使用MySQL,它需要注册/登录,并且将从输入和SQL查询的数据上加载简单的数学运算。我在Excel中完成了一个功能原型,所以我确切地知道我想要构建什么,我希望能够帮助我克服我的烦恼。我会是一个小应用程序,没有什么大的。



我不想在构建它时看到任何HTML ;-)



PS:感谢人们运行Stackoverflow,发现这个地方就在正确的时刻!

解决方案

您应该查看web2py在线文档( http://web2py.com/book )。它配有基于角色的访问控制(最通用的访问控制机制),它非常细致,可以为特定记录的特定操作授予访问权限。它配有基于Web的IDE,但您可以使用 WingIDE Eclipse PyCharm 。它配有帮助系统,允许您生成HTML而不使用HTML。这是一个完整的应用程序的示例,要求用户注册/登录/发布消息:

  db.define_table('message' ,Field('body'),Field('author',db.auth_user)
@ auth.requires_login()
def index():
db.message.author.default = auth.user.id
db.message.author.writable = False
return dict(form = crud.create(db.message))
messages = db(db.message.id> 0).select())

web2py项目非常活跃,从列表中可以看出更改 http://code.google.com/p/web2py/source/list



如果您有web2py相关问题,我强烈建议您加入web2py邮件列表:
http://groups.google.com/group/web2py/topics



我们非常活跃,您的问题将得到回答非常快。


I got a project in mind that makes it worth to finally take the plunge into programming.

After reading a lot of stuff, here and elsewhere, I'm set on making Python the one I learn for now, over C# or java. What convinced me the most was actually Paul Graham's excursions on programming languages and Lisp, though Arc is in the experimental stage, which wouldn't help me do this web app right now.

As for web app fast, I've checked out Django, Turbo Gears and Py2Web. In spite of spending a lot of time reading, I still have no clue which one I should use.

1) Django certainly has the nicest online presence, and a nicely done onsite tutorial, they sure know how to show off their thing.

2) Web2Py attracted me with its no-install-needed and the claim of making Django look complicated. But when you dig around on their website, you quickly find content that hasn't been updated in years with broken external links... There's ghosts on that website that make someone not intimately familiar with the project worry if it might be flatlining.

3) Turbo Gears ...I guess its modular too. People who wrote about it loved it... I couldn't find anything specific that might make it special over Django.

I haven't decided on an IDE yet, though I read all the answers to the Intellisense code completion post here. Showing extra code snippets would be cool too for noobs like me, but I suppose I should choose my web frame work first and then pick an editor that will work well with it.

Since probably no framework is hands down the best at everything, I will give some specifics on the app I want to build:

It will use MySQL, it needs register/sign-in, and there will be a load of simple math operations on data from input and SQL queries. I've completed a functional prototype in Excel, so I know exactly what I want to build, which I hope will help me overcome my noobness. I'll be a small app, nothing big.

And I don't want to see any HTML while building it ;-)

PS: thanks to the people running Stackoverflow, found this place just at the right moment too!

解决方案

You should look at the web2py online documentation (http://web2py.com/book). It comes with a Role Based Access Control (the most general access control mechanism) and it is very granular, you can grant access for specific operation on specific records. It comes with a web based IDE but you can use WingIDE, Eclipse and PyCharm too. It comes with helper system that allows you to generate HTML without using HTML. Here is an example of a complete app that requires users to register/login/post messages:

db.define_table('message',Field('body'),Field('author',db.auth_user))
@auth.requires_login()
def index():
    db.message.author.default=auth.user.id
    db.message.author.writable=False
    return dict(form=crud.create(db.message),
                messages=db(db.message.id>0).select())

The web2py project is very active as you can see from the list of changes http://code.google.com/p/web2py/source/list

If you have web2py related questions I strongly suggest you join the web2py mailing list: http://groups.google.com/group/web2py/topics

We are very active and your questions will be answered very quickly.

这篇关于Django,Turbo Gears,Web2Py,哪个更好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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