Jump to content

Recommended Posts

Posted

This should already be installed on stevie.

Posted

import web
        
urls = (
    '/(.*)', 'hello'
)
app = web.application(urls, globals())

class hello:        
    def GET(self, name):
        if not name: 
            name = 'World'
        return 'Hello, ' + name + '!'

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

 

I tried saving this as "test.wsgi" in the cgi-bin directory and it gave a 500 Internal Server Error

The script is working for sure though

Am I getting something wrong?

Posted

it only happens with WSGI scripts beginning with

import web

:/

I tried other *.wsgi scripts and the worked flawlessly

Can there be any other cause giving a 500 error?

 

Does anybody have a working example of a script using web.py??

Posted
now i get a 404 not found... even though I see the file in my cpanel :/

 

Your WSGI file may be returning the 404.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...