[mod_python] (no subject)

Graham Dumpleton graham.dumpleton at gmail.com
Tue Jul 17 23:43:14 EDT 2007


If you don't understand what a Location directive is and that to
access /mpinfo meant to access from it your web browser, I would very
much suggest that before even trying to use mod_python that you learn
something about Apache and configuring it first. I suggest starting
with the following:

  http://httpd.apache.org/docs/2.2/

Without you having some understanding of Apache configuration we could
go on forever suggesting you try certain things, yet never even be
certain that you are doing it correctly, and probably never find a
solution either.

Graham

On 18/07/07, ryan luna <ryan_gm at sbcglobal.net> wrote:
> You mean putting those lines to the httpd.conf and running the mpinfo.py?
> If so this is what i get
> Traceback (most recent call last):
>   File "C:\Scripts\mptest.py", line 1, in <module>
>     from mod_python import apache
>   File
> "C:\Python25\Lib\site-packages\mod_python\apache.py", line
> 30, in <module>
>     import _apache
> ImportError: No module named _apache
>
> Graham Dumpleton <graham.dumpleton at gmail.com> wrote:
>  What happens if you use add this configuration:
>
>
>  SetHandler mod_python
>  PythonHandler mod_python.testhandler
>
>
> Then access '/mpinfo'.
>
> Do you get lots of mod_python debug info?
>
> Graham.
>
> On 18/07/07, ryan luna wrote:
> > I just tried that and theres no change.
> > The fact that im using WAMP instead of straight up Apache wouldn't have
> > anything to do with it would it?
> >
> > Graham Dumpleton wrote:
> > Hmmm, you never mentioned you were on a Windows box.
> >
> > Did you try what was previously suggested of putting the mod_python
> > configuration stuff in an appropriate Directory directive in your main
> > Apache configuration file?
> >
> >
> > PythonHandler mptest
> > AddHandler mod_python .py
> > PythonDebug On
> >
> >
> > Graham
> >
> > On 18/07/07, ryan luna wrote:
> > > Im running the latest python version, mod_python 3.3.1, and latest
> Apache.
> > > Heres my apache config file
> > > http://www.megaupload.com/?d=OKNGKO7Q
> > > Still having trouble figuring out why apache still shows the source code
> > of
> > > .py files instead of the code output.
> > >
> > > _______________________________________________
> > > Mod_python mailing list
> > > Mod_python at modpython.org
> > >
> http://mailman.modpython.org/mailman/listinfo/mod_python
> > >
> > >
> >
> >
>
>


More information about the Mod_python mailing list