kcarnold/flask-gevent-socketio-chat — pull request #1 by gbin (2012-08-25 09:44:41+00:00)
Title: Redirect / instead of serving chat.html that generates an internal error

I had that before the small patch :
⚫ gbin@sal flask-gevent-socketio-chat % python server.py
Listening on http://localhost:8080
DEPRECATION WARNING: use resource instead of namespace
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/gevent/pywsgi.py", line 438, in handle_one_response
self.run_application()
File "/usr/lib64/python2.7/site-packages/gevent/pywsgi.py", line 424, in run_application
self.result = self.application(self.environ, self.start_response)
File "/usr/lib64/python2.7/site-packages/werkzeug/wsgi.py", line 411, in __call__
return self.app(environ, start_response)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1701, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1689, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "server.py", line 29, in index
return send_file('chat.html')
File "/usr/lib64/python2.7/site-packages/flask/helpers.py", line 568, in send_file
file = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/home/gbin/projects/flask-gevent-socketio-chat/chat.html'
: Failed to handle request:
request = GET / HTTP/1.1 from ('127.0.0.1', 40202)
application =