durusmail: quixote-users: mod_python config troubles
mod_python config troubles
2004-07-06
2004-07-06
2004-07-06
mod_python config troubles
Daniele Varrazzo
2004-07-06
I use to run quixote apps through mod_python on win32. To let the demo work
i use:


    SetHandler python-program
    PythonHandler quixote.mod_python_handler
    PythonOption quixote-root-namespace quixote.demo
    PythonOption config-file
C:/Programmi/Python23/Lib/site-packages/quixote/demo/demo.conf
    PythonInterpreter quixote.demo
    PythonDebug On


letting session_demo work is harder, but i managed to do it following the
help in
http://mail.mems-exchange.org/pipermail/quixote-users/2003-August/001908.htm
l

Regards

Daniele

> -----Messaggio originale-----
> Da: quixote-users-bounces@mems-exchange.org
> [mailto:quixote-users-bounces@mems-exchange.org]Per conto di Igor Stroh
> Inviato: martedi 6 luglio 2004 14.02
> A: Quixote-Users
> Oggetto: [Quixote-users] mod_python config troubles
>
>
> Hi there,
>
> I assume this has been asked before quite often, but after having digged
> for some time in the archives I still have no clue how to configure Apache
> to run an app with mod_python and quixote.
>
> Actually, I do know how I _could_ make it, but I don't like the way it's
> done :)
> I've read[1] and must admit that I don't like this solution. What I need
> as a
> setup that reads something like [2]. Obviously the stuff in [2] doesn't
> work.
> If I understood the idea behind quixote correctly, I need a driver script
> for an app to be run. The code in quixote/demo/__init__.py was the point
> I started from, with no success though: I created
> /var/www/quixoteBasedApp/__init__.py and added a simple _q_index
> just for testing purposes:
>
> def _q_index(request):
>      return "My first QUIXOTE app\n."
>
> Now if I access http://foo.bar.com, I get a directory listing (the one
> from apache)
> instead of the message above.
>
> Any thoughts?
>
> TIA,
> Igor
>
> [1]:
> http://mail.mems-exchange.org/pipermail/quixote-users/2002-May/000452.html
>
> [2]:
> 
>      ServerName foo.bar.com
>
>      DocumentRoot /var/www/quixoteBasedApp
>
>          SetHandler python-program
>          PythonPath "sys.path+['/var/www/']"
>          PythonHandler quixote.mod_python_handler
>          PythonOption quixote-root-namespace quixoteBasedApp
>          PythonInterpreter quixote.quixoteBasedApp
>          PythonDebug On
> 
>
> --
> - Do you like WYSIWYG systems?
> - Definitely not. I can type faster than I can point.
>    And my mother told me that pointing is impolite.
>                                          (c) Andrew S. Tanenbaum's
> personal FAQ
> _______________________________________________
> Quixote-users mailing list
> Quixote-users@mems-exchange.org
> http://mail.mems-exchange.org/mailman/listinfo/quixote-users


reply