torels2 Posted October 19, 2011 Share Posted October 19, 2011 Hi there! Is it possible to add support for web.py? http://webpy.org/ thanks in advance Quote Link to comment Share on other sites More sharing options...
Wizard Posted October 19, 2011 Share Posted October 19, 2011 Wrong forum, topic moved to Customer Service. What do you need it for? Quote Link to comment Share on other sites More sharing options...
Guest xaav Posted October 19, 2011 Share Posted October 19, 2011 This should already be installed on stevie. Quote Link to comment Share on other sites More sharing options...
torels2 Posted October 20, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
Tjoene Posted October 20, 2011 Share Posted October 20, 2011 The 500 error could be caused if you hit the 7 process-limit. Quote Link to comment Share on other sites More sharing options...
torels2 Posted October 20, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
Guest xaav Posted October 21, 2011 Share Posted October 21, 2011 Try now. Quote Link to comment Share on other sites More sharing options...
torels2 Posted October 21, 2011 Author Share Posted October 21, 2011 now i get a 404 not found... even though I see the file in my cpanel :/ Quote Link to comment Share on other sites More sharing options...
Guest xaav Posted October 22, 2011 Share 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 Link to comment Share on other sites More sharing options...
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.