Beginner question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • howa

    #1

    Beginner question

    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.test handler seems return correct
    result, showing I am using python 2.4.3


    any idea?

    Thanks.
  • Graham Dumpleton

    #2
    Re: Beginner question

    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.test handler 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:



    Graham



    Comment

    Working...