torels2 Posted October 19, 2011 Posted October 19, 2011 Hi there! Is it possible to add support for web.py? http://webpy.org/ thanks in advance
Wizard Posted October 19, 2011 Posted October 19, 2011 Wrong forum, topic moved to Customer Service. What do you need it for?
Guest xaav Posted October 19, 2011 Posted October 19, 2011 This should already be installed on stevie.
torels2 Posted October 20, 2011 Author Posted October 20, 2011 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?
Tjoene Posted October 20, 2011 Posted October 20, 2011 The 500 error could be caused if you hit the 7 process-limit.
torels2 Posted October 20, 2011 Author Posted October 20, 2011 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??
torels2 Posted October 21, 2011 Author Posted October 21, 2011 now i get a 404 not found... even though I see the file in my cpanel :/
Guest xaav Posted October 22, 2011 Posted October 22, 2011 now i get a 404 not found... even though I see the file in my cpanel :/ Your WSGI file may be returning the 404.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now