469,356 Members | 2,033 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

Mod_Python - How to make Publisher Handler work?

Hi,
I follow the Mod_python manual and try to let my form.py to handle
html form. The form.html and form.py are copied from
http://www.modpython.org/live/curren...l/tut-pub.html,
after I click "submit", it always calls the page of 'Hello World',
that is myscript.py:
from mod_python import apache

def handler(req):
req.write("Hello World!")
return apache.OK

Where is wrong?
Who knows where I can get a more basic and simple tutorial about
mod_python?
Thanks a lot

Nancy
Jul 18 '05 #1
1 1732
Nancy wrote:
Hi,
I follow the Mod_python manual and try to let my form.py to handle
html form. The form.html and form.py are copied from
http://www.modpython.org/live/curren...l/tut-pub.html,
after I click "submit", it always calls the page of 'Hello World',
that is myscript.py:
from mod_python import apache

def handler(req):
req.write("Hello World!")
return apache.OK

Where is wrong?
You need to make sure you have added mod_python.publisher to your
httpd.conf or .htaccess like the tutorial page says, and if you have
already, try restarting apache. If it still gives the error, then
remove the old myscript stuff from your httpd.conf or .htaccess and
restart apache again. (really you only need to restart if you change
httpd.conf, not .htaccess)
Who knows where I can get a more basic and simple tutorial about
mod_python?
Thanks a lot


I don't know of a good tutorial for mod_python, but here are a few
additional resources: http://modpython.coedit.net/
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by charlie knudsen | last post: by
reply views Thread by Julien Cigar | last post: by
reply views Thread by Python_it | last post: by
6 posts views Thread by Little | last post: by
6 posts views Thread by Anthony L. | last post: by
2 posts views Thread by m.banaouas | last post: by
1 post views Thread by jpuopolo | last post: by
reply views Thread by Simo D | last post: by
reply views Thread by Simo D | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.