471,872 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,872 software developers and data experts.

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 1802
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
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

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.