构建基于Python的Web应用程序 [英] Building Python Based Web Application

查看:58
本文介绍了构建基于Python的Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有兴趣为我正在做的一些

咨询设置一个适度的发票系统。我喜欢在网上管理这个的想法和

创建发票并从浏览器打印它们。但是,我不是很好的确定从哪里开始。我玩过一些CMS应用程序,但是他们看起来更像博客(mamba,wordpress等)。理想情况下,我希望
喜欢与mySQL(或者最喜欢的web-flavor

数据库应用程序)进行交互。我希望能够使用我的python

技能。


我相信如果我打算从scatch写这个,我将会是/>
认真地重新发明轮子,也许已经好几次了。


所以,我的问题是,有没有人知道一本书和/或某种类型的/>
框架对我在这里描述的内容最有意义吗?

我听说过Zope,但我想确保它适用于
在我花了2或3天熟悉它之前,这个工作是
。我很擅长在HTML,python,CSS,python-CGI上使用
,并通过

DBI与mySQL连接。我确信我可以使用这些技能获得一些东西,但是我想要尽可能减少轮子的重新发明。


基本上,我希望在基于数据的Web开发方面有一个快速启动

,重点是应用我的python技能。


任何建议都将不胜感激。


James


-

James Stroud

加州大学洛杉矶分校基因组学研究所和蛋白质组学

Box 951570

洛杉矶,加利福尼亚州90095

http://www.jamesstroud.com/

Hello All,

I am interested in setting up a modest invoicing system for some
consulting I am doing. I like the idea of managing this on the web and
creating invoices and printing them from a browser. However, I''m not
really sure where to start. I''ve played with some CMS applications, but
they seem more for blogging (mamba, wordpress, etc.). Ideally, I would
like to interface with mySQL (or whatever the favorite web-flavor
database app is these days). I would like to be able to use my python
skills.

I confident that if I set out to write this from scatch, I will be
seriously re-inventing the wheel, perhaps several times over.

So, my question is, does anyone know of a book and/or some kind of
framework that would make the best sense for what I am describing here?
I''ve heard of Zope, but I would like to make sure its appropriate for
the job before I spend 2 or 3 days getting acquainted with it. I''m adept
at HTML, python, CSS, python-CGI, and interfacing with mySQL through
DBI. I''m sure I could get something to work with these skills, but I
want to minimize wheel re-invention as much as possible.

Basically, I want a jump start on data-base oriented web development
with a focus on applying my python skills.

Any suggestions will be greatly appreciated.

James

--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/

推荐答案

James Stroud写道:
James Stroud wrote:

基本上,我希望在面向数据的Web开发方面有一个快速启动

,重点是应用我的python技能。


任何建议都将不胜感激。
Basically, I want a jump start on data-base oriented web development
with a focus on applying my python skills.

Any suggestions will be greatly appreciated.



两个非常流行的框架是TurboGears( http ://www.turbogears.org

和Django( http://www.djangoproject.com/)。过去我和

都运气好,TurboGears是我目前的首选框架。


还有很多其他框架作为好吧,但是我会猜这些是最受欢迎的两个。


好​​运 -


-

Jonathan LaCour
http://cleverdevil.org

Two very popular frameworks are TurboGears (http://www.turbogears.org)
and Django (http://www.djangoproject.com/). I have had good luck with
both in the past, and TurboGears is my current framework of choice.

There are a bunch of other frameworks out there as well, but I would
guess that these are the two most popular.

Best of luck -

--
Jonathan LaCour
http://cleverdevil.org




James Stroud写道:

James Stroud wrote:

Hello All,

我有兴趣为我正在做的一些

咨询建立一个适度的发票系统。我喜欢在网上管理这个的想法和

创建发票并从浏览器打印它们。但是,我不是很好的确定从哪里开始。我玩过一些CMS应用程序,但是他们看起来更像博客(mamba,wordpress等)。理想情况下,我希望
喜欢与mySQL(或者最喜欢的web-flavor

数据库应用程序)进行交互。我希望能够使用我的python

技能。


我相信如果我打算从scatch写这个,我将会是/>
认真地重新发明轮子,也许已经好几次了。


所以,我的问题是,有没有人知道一本书和/或某种类型的/>
框架对我在这里描述的内容最有意义吗?

我听说过Zope,但我想确保它适用于
在我花了2或3天熟悉它之前,这个工作是
。我很擅长在HTML,python,CSS,python-CGI上使用
,并通过

DBI与mySQL连接。我确信我可以使用这些技能获得一些东西,但是我想要尽可能减少轮子的重新发明。


基本上,我希望在基于数据的Web开发方面有一个快速启动

,重点是应用我的python技能。


任何建议都将不胜感激。


James


-

James Stroud

加州大学洛杉矶分校基因组学研究所和蛋白质组学

Box 951570

洛杉矶,加利福尼亚州90095

http://www.jamesstroud.com/



詹姆斯,

Hi James,


>从你看起来的样子,按我个人的
>From what it looks like you are doing, filtered by my personal



经验过滤,我会推荐Django或TurboGears。从我听到Zope的消息来看,Pylons也是不错的选择。


如果您的数据输入形式
直接映射到数据库表。管理界面几乎免费为您提供基于Web的数据库访问权限。当你的数据关系变得更复杂时,它也不会工作,但是可能会证明这是一个有用的开端。

我认为TurboGears是一个非常好的选择,因为小部件。在

中,TurboGears小部件打包了一些用户交互代码,在整个项目中可以移植到
。小部件已经创建了

处理表单创建,一堆漂亮的小ajax东西,以及

甚至更高级的功能。用户创建的小部件可以(并且是)

可以轻松下载和安装。


你可能会觉得有用的一个例子是TurboTinyMCE

小部件,巧合的不是

turbogears的标准部分,而是一个可下载的小部件。它将TinyMCE文本

编辑器整合到任何网页中,而不必担心添加样式

表,javascript包含,或者实际上任何产生TinyMCE的代码

到您现有的HTML。你基本上在模板中调用了TinyMCE小部件

,其余的工作都是自动完成的。

TurboGears也有一个管理界面(名为Catwalk),但是它不是专为外部使用设计的



如果没有更好地了解你想做什么,我会

推荐Django,理由是管理界面可能会为您提供所需的
。我鼓励你看看这两个项目

如果你有时间,只是为了看看你更喜欢哪一个,但基于原始的

功能匹配是我的推荐。


披露:我的大部分工作都是使用TurboGears。如果我有诽谤或

以任何方式歪曲任何其他项目,请将其归结为缺乏

的经验。如果我以任何

方式诽谤或歪曲TurboGears,请将其归因于缺乏咖啡因。

experience, I would recommend either Django or TurboGears. From what I
have heard Zope, and Pylons would also be good choices.

Django would be by far the better choice if your data entry forms would
map directly to your database tables. The admin interface gives you
web-based access to your database pretty much for free. It doesn''t work
as well when your data relationships are more complicated, but could
probably prove to be a useful head start.

I think TurboGears is a pretty good choice because of widgets. In
TurboGears widgets are packaged up bits of user interaction code, made
portable throughout your project. Widgets have already been created
that handle form creation, a bunch of nifty little ajax things, and
even more advanced features. User created widgets can be (and are)
easily made available for download and installation.

One example that you would probably find useful is the TurboTinyMCE
widget, which coincidentally enough is not a standard part of
turbogears, but a downloadable widget. It incorporates the TinyMCE text
editor into any web page without having to worry about adding style
sheets, javascript includes, or really any code that produces TinyMCE
to your existing HTML. You basically put a call to the TinyMCE widget
in your Template and all the rest of the work happens automatically.
TurboGears also has an admin interface (named Catwalk), but it is not
designed for external use.

Without having a better idea of what you are trying to do, I would
recommend Django on the grounds that the admin interface will probably
do what you need. I would encourage you to take a look at both projects
if you have time, just to see which one you like more, but based on raw
feature matches that is my recommendation.

Disclosure: I do most of my work with TurboGears. If I have maligned or
misrepresented any other project in any way please attribute it to lack
of experience. If I have maligned or misrepresented TurboGears in any
way, please attribute it to lack of caffeine.


9月8日/ 06,James Stroud< js ***** @ mbi.ucla.eduwrote:
On 9/8/06, James Stroud <js*****@mbi.ucla.eduwrote:

Hello All,


我有兴趣为我正在做的一些

咨询建立一个适度的发票系统。我喜欢在网上管理这个的想法和

创建发票并从浏览器打印它们。但是,我不是很好的确定从哪里开始。我玩过一些CMS应用程序,但是他们看起来更像博客(mamba,wordpress等)。理想情况下,我希望
喜欢与mySQL(或者最喜欢的web-flavor

数据库应用程序)进行交互。我希望能够使用我的python

技能。


我相信如果我打算从scatch写这个,我将会是/>
认真地重新发明轮子,也许已经好几次了。


所以,我的问题是,有没有人知道一本书和/或某种类型的/>
框架对我在这里描述的内容最有意义吗?

我听说过Zope,但我想确保它适用于
在我花了2或3天熟悉它之前,这个工作是
。我很擅长在HTML,python,CSS,python-CGI上使用
,并通过

DBI与mySQL连接。我确信我可以使用这些技能获得一些东西,但是我想要尽可能减少轮子的重新发明。


基本上,我希望在面向数据的Web开发方面有一个快速启动

,重点是应用我的python技能。
Hello All,

I am interested in setting up a modest invoicing system for some
consulting I am doing. I like the idea of managing this on the web and
creating invoices and printing them from a browser. However, I''m not
really sure where to start. I''ve played with some CMS applications, but
they seem more for blogging (mamba, wordpress, etc.). Ideally, I would
like to interface with mySQL (or whatever the favorite web-flavor
database app is these days). I would like to be able to use my python
skills.

I confident that if I set out to write this from scatch, I will be
seriously re-inventing the wheel, perhaps several times over.

So, my question is, does anyone know of a book and/or some kind of
framework that would make the best sense for what I am describing here?
I''ve heard of Zope, but I would like to make sure its appropriate for
the job before I spend 2 or 3 days getting acquainted with it. I''m adept
at HTML, python, CSS, python-CGI, and interfacing with mySQL through
DBI. I''m sure I could get something to work with these skills, but I
want to minimize wheel re-invention as much as possible.

Basically, I want a jump start on data-base oriented web development
with a focus on applying my python skills.



我认为Karrigell可能会做你想要的,你可以在几个小时内阅读所有

(优秀)文档。否则,特别是如果你认为你可能会深入了解基于网络的东西,有更多的b / b
复杂/特殊/无论什么需要,我可能会尝试Pylons(其中有

也非常好,组织良好的文档)。我没有直接的经验

与Django或TG,但我发现他们压倒性,特别比较了

到Karrigell; Zope我发现更加压倒性。


HTH,


R.

I think that Karrigell might do what you want, and you can read all
the (excellent) documentation in a few hours. Otherwise, specially if
you think you might get deeper into web-based stuff, with more
complex/special/whatever needs, I''d probably try Pylons (which has
also very nice and well organized docs). I have no direct experience
with Django or TG, but I find them "overwhelming", specially compared
to Karrigell; Zope I find even more overwhelming.

HTH,

R.


-

James Stroud

加州大学洛杉矶分校基因组学和蛋白质组学研究所

专栏951570

洛杉矶, CA 90095

http://www.jamesstroud.com/116

-
http://mail.python.org/mailman/listinfo/python-list117



-

Ramon Diaz -Uriarte

生物信息学部门

西班牙国家癌症中心(CNIO)
http://ligarto.org/rdiaz


这篇关于构建基于Python的Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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