By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,271 Members | 1,722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,271 IT Pros & Developers. It's quick & easy.

Beginner question

P: n/a
Hi,

Just want to try mod_python but it is more complicated then I
expected...

I just followed the tutorial on: http://www.modpython.org/live/mod_py...t-testing.html
E.g.

URL = http://www.example.com/mptest.py

It return

ImportError: No module named mptest

1. If I removed addHandler mod_python .py and PythonHandler mptest, I
can see the SOURCE CODE

2. The PythonHandler mod_python.testhandler seems return correct
result, showing I am using python 2.4.3
any idea?

Thanks.
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On May 26, 4:13*am, howa <howac...@gmail.comwrote:
Hi,

Just want to try mod_python but it is more complicated then I
expected...

I just followed the tutorial on:http://www.modpython.org/live/mod_py...l/inst-testing....

E.g.

URL =http://www.example.com/mptest.py

It return

ImportError: No module named mptest

1. If I removed addHandler mod_python .py and PythonHandler mptest, I
can see the SOURCE CODE

2. The PythonHandler mod_python.testhandler seems return correct
result, showing I am using python 2.4.3

any idea?
Why are you using the documentation from version 2.7.8 of mod_python
when you are using a much newer version?

Also read:

http://www.dscpl.com.au/wiki/ModPyth...dPythonWorking

Graham

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.