473,804 Members | 3,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

is mod_python borked?

I am considering python, instead of php, for web-application
development. I often see mod_python.crit icisized as being borked,
broken, or just plain sucking.

Any truth to any of that?

Nov 2 '06 #1
10 1421
walterbyrd wrote:
I am considering python, instead of php, for web-application
development. I often see mod_python.crit icisized as being borked,
broken, or just plain sucking.

Any truth to any of that?
Why don't you ask the very active mod_python mailing list that?

Like all systems mod_python has its limitations, but it has an active
development community who are extremely responsive to user and developer
input.

Follow-ups set to gmane.comp.pyth on.mod_python.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Nov 2 '06 #2

walterbyrd wrote:
I am considering python, instead of php, for web-application
development. I often see mod_python.crit icisized as being borked,
broken, or just plain sucking.

Any truth to any of that?
No, I've been using mod_python for a long time, and I haven't run in to
any problems. In fact I use python server pages for my web development,
which is much faster than python cgi scripts.

http://vsbabu.org/webdev/pydev/python10.html

Once you set up your server for psp pages, it's so easy. Very similar
to php pages. Just give it a go and you'll like it.

http://www.modpython.org/ for setting up server with mod_python.

Nov 2 '06 #3
walterbyrd wrote:
I am considering python, instead of php, for web-application
development. I often see mod_python.crit icisized as being borked,
broken, or just plain sucking.

Any truth to any of that?
Hi,

mod_python is Apache/Python Integration. AFAIK you can't use
it with a different webserver.

I use quixote with plain old CGI. It is fast enough for my stuff. If
there is heavy load, I would try SCGI.

Thomas

--
Thomas Güttler, http://www.thomas-guettler.de/ http://www.tbz-pariv.de/
E-Mail: guettli (*) thomas-guettler + de
Spam Catcher: ni************* *@thomas-guettler.de

Nov 2 '06 #4
Shreekar Patel wrote:
No, I've been using mod_python for a long time, and I haven't run in to
any problems. In fact I use python server pages for my web development,
which is much faster than python cgi scripts.

Researching further, it looks to me like mod_python may only work well
on apache 2.X. I noticed that django only works with apache 2.X, and
I'm not sure about turbogears. (btw: it always annoys me when I can't
find the system requirements for a project. Those requirements should
be easy to find. I shouldn't have to google for two hours, and post to
several forums).

If I'm right about mod_python only working well with apache 2.x, then I
think that's a shame, because few web-hosters use apache 2.x.

Nov 2 '06 #5
walterbyrd wrote:
Researching further, it looks to me like mod_python may only work well
on apache 2.X.
mod_python works splendidly with Apache 2.0.x as well as Apache 1.3.x. There
is a different mod_python version for each Apache branch. The version for
Apache 2.0.x has newer features, but the version for Apache 1.3.x is still
enjoyable.

Django may use features from the Apache 2.0.x mod_python version that are
not available in the Apache 1.3.x version, thus making Django incompatible
with Apache 1.3.x.
Jeffrey
Nov 2 '06 #6

walterbyrd wrote:
I am considering python, instead of php, for web-application
development. I often see mod_python.crit icisized as being borked,
broken, or just plain sucking.

Any truth to any of that?
I replied to you over on the mod_python mailing list when you reposted
the question there, but I'll copy to here my response for the benefit
of others.

In answer to your question of whether mod_python is borked, the answer
is yes and no.

One sees various people complain about mod_python. In some cases their
claims are valid, but in other cases they are wrong and haven't
bothered to work out how it works. Even when their claims are valid,
they often don't understand the problem properly. To use mod_python
properly also means in a lot of cases understanding how Apache works,
which many are too lazy to do. For example, the difference between
SetHandler and AddHandler and what happens when MultiViews is enabled.

One of the biggest problems is that a lot of ISPs still use Apache 1.3
and so only mod_python 2.7.X is available on those platforms. This
version is quite old now and doesn't behave exactly the same as more
recent versions, yet people read the most recent documentation and
complain it doesn't work as they expect.

Even where people are using Apache 2.0 and thus can use newer versions
of mod_python, they sometimes use RedHat enterprise versions of Linux
which are stuck in a time warp with only 3.1.X versions of mod_python
available. Some of the other Linux distributions haven't been much
better until recently and with people refusing to compile from source
code and demanding RPMs, DEBs or other prepackaged releases are only
bringing it on themselves.

Version 3.2.X has been an improvement over older versions.
Significantly it fixed multithreading issues on Windows and with worker
MPM on UNIX. For publisher at least, it addressed some of the module
importer issues, but not all. It has also addressed some major memory
leaks.

So in summary, if you use the most recent version you are obviously
going to have the least problems. Many still use older versions though
and can't or will not upgrade. Even the current version has known
issues and you can get a feel for what is known by going through issues
at:

http://issues.apache.org/jira/browse/MODPYTHON

In particular the number of separate issues which will be addressed in
3.3 is getting up towards 100. These aren't all bug fixes, with many
being new features and improvements. The most important change will be
the replacement of the module importer. For a lengthy description of
the problems with the module importer see:
http://www.dscpl.com.au/wiki/ModPyth...ortingIsBroken

So, use an older version of mod_python and the answer to the question
of whether it is borked is mostly yes. Use the current version and
except for module importer issues, the answer is mostly no. With
version 3.3, the answer should hopefully be a strong no.

Graham

Nov 2 '06 #7

gr*****@dscpl.c om.au wrote:
One of the biggest problems is that a lot of ISPs still use Apache 1.3
and so only mod_python 2.7.X is available on those platforms.
Yes, I think that is a big problem. I don't think django or turbogears
will work with apache 1.3. And it seems to me that practically all
web-hosters use apache 1.3.

*sigh* maybe I'll just use php until the web-hosters catch up, if they
ever do.

Nov 3 '06 #8
gr*****@dscpl.c om.au wrote:
walterbyrd wrote:
>>I am considering python, instead of php, for web-application
development . I often see mod_python.crit icisized as being borked,
broken, or just plain sucking.

Any truth to any of that?


I replied to you over on the mod_python mailing list when you reposted
the question there, but I'll copy to here my response for the benefit
of others.

In answer to your question of whether mod_python is borked, the answer
is yes and no.
Nice summary. To be fair to Walter, it was me who reposted his question.
But I think it's great that the whole of c.l.py is now up to speed on
mod_python, so thanks!

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Nov 3 '06 #9
"walterbyrd " <wa********@ina me.comwrote:
>
I am considering python, instead of php, for web-application
development. I often see mod_python.crit icisized as being borked,
broken, or just plain sucking.

Any truth to any of that?
mod_python is most definitely NOT the only way of using Python to create a
web site. CGI by itself is quite practical, unless you are anticipating
100s of hits per minute. Even if it isn't, something like CherryPy used
through a proxy gives you the benefit of a long-running process with the
convenience of Apache.
--
Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Nov 3 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2293
by: wolf | last post by:
i would like to briefly share my experiences with installing mod_python on a w2000 box. i must say that i believe the installation process to be unnecessarily complicated by the simple fact that the installer itself seems to be buggy -- in my case, no combination of mod_python 3.0.4, 3.1.2b and python 2.2.3, 2.3.3 ever came to completion. rather, the installer would exit -- after an initial declaration of having successfully found python...
2
2088
by: Robert J. Hansen | last post by:
I'm not entirely certain comp.lang.python is the proper newsgroup for mod_python questions, but "comp.lang.python.web" doesn't seem to exist, so... my apologies in advance if this is considered off-topic. I'm attempting to get mod_python 3.1.4/python 2.4.1 working on Apache 2.0.54 running under OS X. Apache was compiled from source with a simple /configure --enable-so --with-mpm=worker
0
1808
by: Python_it | last post by:
I'm going to work with mod_python. I install mod_python 3.2.2b for python 2.4. If i test my install with mptest.py see this link: http://www.modpython.org/live/mod_python-3.2.2b/doc-html/modpython.html IT WORKS!
6
1949
by: Anthony L. | last post by:
I am writing a web application that is comparable to a content management system used in blogging. I really want to use Python after having done some evaluation coding using Python 2.3.5 with mod_python 3.1.4 running on Apache 2.0 with the Publisher handler. However, I am still very hesitant to settle on Python. All my research brings up the same collection of scant articles and old mailing list messages that reference each other. I am...
1
4362
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req): req.content_type = 'text/plain' req.write("Under Construction")
2
3316
by: exhuma.twn | last post by:
Hi again, as soon as I try to make use of the "session" object inside a psp-template file, I get the following error: Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
5
3124
by: m.banaouas | last post by:
Hi, bonjour, witch versions are suitable to use for apache & mod_python ? Can i install and use "Apache 2.2.3" & "mod_python 3.2.10" (most recent versions) without facing any known major issue ? thanks for any help.
3
1804
by: Michael | last post by:
Hey everyone, Is it possible to automatically insert headers/footers using mod_python? I will be not be using PSP's, so I cannot use the PSP/include solution. Furthermore, the header will be dynamic; it won't be a static HTML page. In short, I've been looking for a page layout facility using mod_python.
3
4945
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added <Directory "D:/softwares/Apache2.2/htdocs"> AddHandler mod_python .py PythonHandler mptest PythonDebug On </Directory>
0
9587
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.