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 Quote
Wizard Posted October 19, 2011 Posted October 19, 2011 Wrong forum, topic moved to Customer Service. What do you need it for? Quote
Guest xaav Posted October 19, 2011 Posted October 19, 2011 This should already be installed on stevie. Quote
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? Quote
Tjoene Posted October 20, 2011 Posted October 20, 2011 The 500 error could be caused if you hit the 7 process-limit. Quote
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?? Quote
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 :/ Quote
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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.