On 12 June 2010 08:16, yosy <[email protected]> wrote: > Hey, > I am just getting started with wsgi,and I have wrote this little code > - > > from webob import Request, Response > > def application(environ,start_response): > request = Request(environ) > response = Response() > status = '200 OK' > response_headers = [('Content-type','text/plain')] > start_response(status,response_headers) > return ['Hello World'] > > When I am trying to run this using Apache 2.2,mod_wsgi 2.7 and Python > 2.6 on Windows 7,I am getting this error - > Internal Server Error > > The server encountered an internal error or misconfiguration and was > unable to complete your request. > > Please contact the server administrator, [email protected] and inform > them of the time the error occurred, and anything you might have done > that may have caused the error. > > More information about this error may be available in the server error > log.
But did you actually look in the Apache error log. Ensure you read: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques And yes I know you have solved the issue now. I just want to highlight the importance of actually using the error logs. Graham > When I commenting the webob lines (import,Response and Request),I > don`t get errors. > > Can you please help me? > -- Yosy > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" 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/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi?hl=en.
