i do not know the answer, but the trailing slash looks bad (as far as apache
reading it as a directory level), but i do not know the webpy point of view.
If it's wsgi - shouldn't you have an htaccess with a rewrite rule defining
the code.py as the file to execute?

sorry if my attempt to help confuses you.

-----------------------
Visit My Sites!
www.syrbot.com | My Site
www.attackr.com | Latest Blog Posts
www.superantispyware.com/superantispyware.html?rid=3971 Remove All The
Spyware - Not Just The Easy Ones!



On Mon, Feb 15, 2010 at 8:44 AM, ProfessionalIT <[email protected]> wrote:

> 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] <webpy%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>
>

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