g'day.

what will be the setup required for apache + mod_python with latest 
web.py 0.31 ?
seems the /install documentation is about web.py 0.2*...

i run into web.py today and it reminded me my own production 
web-MVC-framework from 5 years ago... And as i never got into 
understanding wsgi and related big-web-server stuff (my stuff worked 
over medusa), now i went trying it.

The apache server has mod_cgi and mod_python, python 2.5. 
no mod_fcgi, no mod_wsgi, and i am just a user there. 
Tried web.py via cgi - works.

mod_python... after many errors, reading plenty of pages and 404s 
around the web, i'm stuck, with some 
 <type 'exceptions.ImportError'> at /
 No module named _mp_abcdef-long-id-here
 at 
..../web/application.py in reload_mapping


here things i did so far:
 - made a directory on my site, say /1/a/, containing my example w.py, 
web/ from latest web.py and modpython_gateway.py which i dig from
   http://www.aminus.net/browser/modpython_gateway.py?format=txt

 - made a .htaccess containing:
<Files *.py>  
 PythonPath "sys.path + ['/path/to/www/root/1/a/']"
 AddHandler python-program .py
 PythonHandler modpython_gateway::handler
 PythonOption wsgi.application w::main
 PythonDebug On
</Files> 

- the example w.py is:
import web
urls = (
  '/w.py', 'opit',
)
class opit:
    def GET(self): return "Hello, world!"

app = web.application( urls, globals())
main = app.wsgifunc()   #is this so???? just guessing
if __name__ == "__main__": app.run()


i have tried also putting urls like '/', and '/1/a/w.py' with no 
effect.

any pointers?
thanks 

ciao
svil
www.svilendobrev.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to