Friends,

My  httpd.conf

WSGIScriptAlias /park-system "c:/apps/park-system/code.py/"

Alias /park-system/static "c:/apps/park-system/static/"
AddType text/html .py

<Directory "c:/apps/park-system/">
    Order deny,allow
    Allow from all
</Directory>

------------------------------------------------------------------

My code.py

#!/usr/bin/python
import web

render = web.template.render('templates/')

urls = (
  '/', 'index'
)

#app = web.application(urls, globals())
app = web.application(urls, globals()).wsgifunc()
class index:
    def GET(self):
        return render.index()

if __name__ == "__main__": app.run()

--------------------------------------------------------------------------
Apache Error Log:

[Mon Feb 15 11:29:35 2010] [notice] Child 7452: Starting thread to
listen on port 80.
[Mon Feb 15 11:29:40 2010] [error] [client 127.0.0.1] mod_wsgi
(pid=7452): Target WSGI script 'C:/apps/park-system/code.py' cannot be
loaded as Python module.
[Mon Feb 15 11:29:40 2010] [error] [client 127.0.0.1] mod_wsgi
(pid=7452): Exception occurred processing WSGI script 'C:/apps/park-
system/code.py'.
[Mon Feb 15 11:29:40 2010] [error] [client 127.0.0.1] Traceback (most
recent call last):
[Mon Feb 15 11:29:40 2010] [error] [client 127.0.0.1]   File "C:/apps/
park-system/code.py", line 2, in <module>
[Mon Feb 15 11:29:40 2010] [error] [client 127.0.0.1]     import web
[Mon Feb 15 11:29:40 2010] [error] [client 127.0.0.1] ImportError: No
module named web
[Mon Feb 15 11:30:42 2010] [error] [client 10.1.5.202] mod_wsgi
(pid=7452): Target WSGI script 'C:/apps/park-system/code.py' cannot be
loaded as Python module.
[Mon Feb 15 11:30:42 2010] [error] [client 10.1.5.202] mod_wsgi
(pid=7452): Exception occurred processing WSGI script 'C:/apps/park-
system/code.py'.
[Mon Feb 15 11:30:42 2010] [error] [client 10.1.5.202] Traceback (most
recent call last):
[Mon Feb 15 11:30:42 2010] [error] [client 10.1.5.202]   File "C:/apps/
park-system/code.py", line 2, in <module>
[Mon Feb 15 11:30:42 2010] [error] [client 10.1.5.202]     import web
[Mon Feb 15 11:30:42 2010] [error] [client 10.1.5.202] ImportError: No
module named web

Just a detail, I can't excute the python setup install of web.py
sources in this server (I don't have permission), then I put the
folder 'web' inner of park-system folder.

Any idea ?

Thanks.
Leandro.

-- 
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