简体   繁体   English

启动新的数据库驱动的python Web应用程序,您会使用javascript小部件框架吗? 如果是这样的框架?

[英]Starting a new database driven python web application would you use a javascript widget framework? If so which framework?

I am starting a new web application project. 我正在启动一个新的Web应用程序项目。 I want to use python as I am using it at my bread-and-butter-job. 我想在我的面包和黄油工作中使用python,因为我正在使用它。

However I don't want to reinvent the wheel. 但是我不想重新发明轮子。 Some things I have thought about: 我考虑过的一些事情:

  • AJAX would be nice if it's not too much of a hazzle. 如果不太麻烦,AJAX会很好。

  • It is best if the licensing allows commercialization but is not crucial at this point. 许可是否允许商业化是最好的选择,但此时并不重要。

  • It could also be funny to try out the Google App Engine if the tools will let me. 如果工具允许我尝试Google App Engine,也可能很有趣。

Should I be using a javascript UI framework or should I go for standard HTML forms? 我应该使用JavaScript UI框架还是应该使用标准HTML表单?

Which framework would you recommend? 您会推荐哪个框架?

jQuery ? jQuery的 Though its UI components are perhaps not up to the very best (but lots of work appears to be done in that area), jQuery itself seems to be on track to become the de facto JS standard library. 尽管它的UI组件可能不是最好的(但是在该领域似乎有很多工作要做),但jQuery本身似乎有望成为事实上的JS标准库。 It is both MIT or GPL licensed so commercial use is ok (and costless). 它已获得麻省理工学院(MIT)或GPL许可,因此可以在商业上使用(而且成本不高)。

I heartily suggest Django + Prototype . 我衷心建议Django + Prototype I think they cover most of the bases you are looking at and they are very straight-forward to get started with. 我认为它们涵盖了您正在查看的大多数基础,并且非常容易上手。 Also you could use them on the GAE if that is the route you decide to take, although you should keep in mind that the GAE does not support Cron jobs, which can limit your functionality. 如果您要决定这样做,也可以在GAE上使用它们,尽管您要记住GAE不支持Cron作业,这会限制您的功能。

I'd take a look at web2py . 我来看看web2py It's a full-stack framework that requires no configuration and is easy to try out - everything can be driven via a web interface if you choose. 这是一个不需要任何配置且易于试用的全栈框架-如果您愿意,所有内容都可以通过Web界面进行驱动。 I've dabbled with other frameworks and it's by far the easiest to setup and includes lots of helpful things for free. 我涉足其他框架,到目前为止,这是最容易设置的,并且免费包含许多有用的东西。 The documentation is good and there is a howto for getting it to work under Google App Engine. 该文档很好,并且有一个如何使其在Google App Engine下工作的方法。 It comes with libraries and a howto for Ajax. 它带有库和Ajax的howto。 As far as I remember the licence doesn't restrict using it in commercial applications. 据我所知,该许可证并不限制在商业应用中使用它。

Take a look at ExtJS . 看一下ExtJS It's got the best widget library out there. 它拥有最好的窗口小部件库。 They offer a commercial license and an open-source license. 他们提供商业许可证和开源许可证。 There are several python developers in the community and there is some integration with Google APIs. 社区中有多个python开发人员,并且与Google API进行了一些集成。

web2py使用jQuery

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM