python web编程/ CMS [英] python web programming / CMS

查看:216
本文介绍了python web编程/ CMS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在寻找python为新内联网做编程

在公司这里。我也在看plone / zope。

之前,我已经使用jsp进行网络编程,但我正在考虑为此获得
python。

我不清楚的一件事是,如果可以在html页面中包含python

代码,就像使用jsp一样,然后使用zope

" translate"那到html。使用jsp,可以使用apache / tomcat

组合来完成此任务。

如果一个人不能在html中包含python,那么Zope是唯一的选择并且

代码看起来如何?


谢谢

解决方案

news.telenet .be写道:



我正在寻找python为新的内部网做编程
在公司这里。我也在看plone / zope。
之前,我已经使用jsp进行网络编程了,但我正在考虑这个问题。
有一件事是不是我清楚的是,是否可以在html页面中包含python
代码,就像使用jsp一样,然后使用zope
translate那到html。使用jsp,可以使用apache / tomcat
组合来完成此任务。
如果一个人不能在html中包含python,那么Zope是唯一的选择吗?
代码如何看起来像那样?

谢谢



有多种方法可以实现PSP(Python服务器页面)类型

设置。


我不知道它在其他python用户中的表现如何 -

其实我会感兴趣要知道,但我使用

非常轻量级的Spyce: http:// spyce .sourceforge.net


我使用Spyce风格的apache,结合python cgi的东西来对我们的内部网有很大影响。

希望这会有所帮助。


" Arcane" < AR **** @ deepfort.com> schreef在bericht

新闻:ma ************************************ ** @ pyth on.org ...

news.telenet.be写道:



我''我正在寻找python为新的内部网做编程
在公司这里。我也在看plone / zope。
之前,我已经使用jsp进行网络编程了,但我正在考虑这个问题。
有一件事是不是我清楚的是,是否可以在html页面中包含python
代码,就像使用jsp一样,然后使用zope
translate那到html。使用jsp,可以使用apache / tomcat
组合来完成此任务。
如果一个人不能在html中包含python,那么Zope是唯一的选择吗?
代码如何看起来像那样?

谢谢


有多种方法可以实现PSP(Python服务器页面)类型的设置。

我不知道它在其他python用户中的表现如何 -
事实上,我有兴趣知道,但我使用
非常轻量级的Spyce:< a rel =nofollowhref =http://spyce.sourceforge.nettarget =_ blank> http://spyce.sourceforge.net 。

我使用Spyce -flavoured apache,结合python cgi的东西,对我们的内部网有很大的影响。

希望这会有所帮助。




(看到名字被错误配置为news.telenet.be)


这似乎正在做我想要的。但是我还有一些问题需要更多的问题。


1.我认为我必须将FastCGI添加到

Spyce安装是为了让它工作吗?


2.在jsp中,我经常在代码中使用自己的java对象。你能用Spyce做这个吗?例如,如果我必须从数据库中获取数据,那么
会生成一个实现代码的对象,然后创建一个实例
PSP中该对象的
。这是可行的吗?


3.可以从Python访问哪些数据库?

Flupke


news.telenet.be写道:



我正在看python为新编程内联网
来自公司。我也在看plone / zope。
之前,我已经使用jsp进行网络编程了,但我正在考虑这个问题。
有一件事是不是我清楚的是,是否可以在html页面中包含python
代码,就像使用jsp一样,然后使用zope
translate那到html。使用jsp,可以使用apache / tomcat
组合来完成此任务。
如果一个人不能在html中包含python,那么Zope是唯一的选择吗?
代码如何看起来像那样?

谢谢



查看 http://www.python.org/cgi-bin/moinmoin/WebProgramming
所有python选项的


我建议你查看mod_python。您可以使用mod_python的PSP将Python嵌入HTML



Hi,

i''m looking at python to do programming for the new intranet
here at the company. I''m looking at plone/zope also.
Before, I''ve used jsp for webprogramming but i''m considering
python for this.
One thing that isn''t clear to me is if it''s possible to include python
code in a html page like you would do with jsp and then have zope
"translate" that to html. With jsp, one could use an apache/tomcat
combo to accomplish this.
If one can''t include python in html, is Zope the only alternative and
how does code look like then?

Thanks

解决方案

news.telenet.be wrote:

Hi,

i''m looking at python to do programming for the new intranet
here at the company. I''m looking at plone/zope also.
Before, I''ve used jsp for webprogramming but i''m considering
python for this.
One thing that isn''t clear to me is if it''s possible to include python
code in a html page like you would do with jsp and then have zope
"translate" that to html. With jsp, one could use an apache/tomcat
combo to accomplish this.
If one can''t include python in html, is Zope the only alternative and
how does code look like then?

Thanks


There are various ways to implement a "PSP (Python Server Pages)"-type
setup.

I don''t know how well regarded it is amongst other python users - in
fact, I''d be interested to know, but I use the
very lightweight Spyce : http://spyce.sourceforge.net.

I use Spyce-flavoured apache, in combination with python cgi stuff to
great effect on our intranet.

Hope this helps.


"Arcane" <ar****@deepfort.com> schreef in bericht
news:ma**************************************@pyth on.org...

news.telenet.be wrote:

Hi,

i''m looking at python to do programming for the new intranet
here at the company. I''m looking at plone/zope also.
Before, I''ve used jsp for webprogramming but i''m considering
python for this.
One thing that isn''t clear to me is if it''s possible to include python
code in a html page like you would do with jsp and then have zope
"translate" that to html. With jsp, one could use an apache/tomcat
combo to accomplish this.
If one can''t include python in html, is Zope the only alternative and
how does code look like then?

Thanks


There are various ways to implement a "PSP (Python Server Pages)"-type
setup.

I don''t know how well regarded it is amongst other python users - in
fact, I''d be interested to know, but I use the
very lightweight Spyce : http://spyce.sourceforge.net.

I use Spyce-flavoured apache, in combination with python cgi stuff to
great effect on our intranet.

Hope this helps.



(saw name was misconfigured as news.telenet.be)

This seems to be doing what i want. However i have some more
questions :)

1. Am i correct in thinking i would have to add for instance FastCGI to
the Spyce install in order to get it working?

2. In jsp, i often used my own java objects in the code. Can you also do
this with Spyce? For instance, if i would have to get data from a db, i
would
make an object that implements code to do this and then create an instance
of that object in a PSP. Is this doable?

3. What databases can be accessed from Python?

Flupke


news.telenet.be wrote:

Hi,

i''m looking at python to do programming for the new intranet
here at the company. I''m looking at plone/zope also.
Before, I''ve used jsp for webprogramming but i''m considering
python for this.
One thing that isn''t clear to me is if it''s possible to include python
code in a html page like you would do with jsp and then have zope
"translate" that to html. With jsp, one could use an apache/tomcat
combo to accomplish this.
If one can''t include python in html, is Zope the only alternative and
how does code look like then?

Thanks


Check out http://www.python.org/cgi-bin/moinmoin/WebProgramming
for all the python options.
I''d recommend checking out mod_python. You can embed Python in HTML
using mod_python''s PSP.


这篇关于python web编程/ CMS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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