for the record, i somewhat solved this by disabling autoreload. dont know what this would break...
here the setup of how to serve from http://another.site/some/path/ .htaccess in that directory: --------- <Files *.py> PythonPath "sys.path + ['/full/server-path/www/some/path/']" AddHandler python-program .py #call the modpython_gateway.handler which uses wsgi.application below and imports/runs that PythonHandler modpython_gateway::handler #PythonOption wsgi.application mymodule::mycallable PythonOption wsgi.application x::main PythonDebug On </Files> <IfModule mod_rewrite.c> RewriteEngine on # site-relative: /some/path == /some/path/ == /some/path/x.py/ RewriteBase / RewriteRule ^$ /some/path/x.py/ [PT] # site-relative: /some/path/x.py == /some/path/x.py/ RewriteRule ^x.py$ /some/path/x.py/ [PT] </IfModule> ============== x.py in that directory: ---------- urls = ( '/', 'someclass', ..... ) ..... app = web.application( urls, globals(), autoreload=False) main = app.wsgifunc() #used in .htaccess as x::main ========== modpython_gateway.py is also in that directory ciao svilen www.svilendobrev.com g'day. >what will be the setup required for apache + mod_python with >latest web.py 0.31 ? >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_long-hex-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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
