1. John Costa
  2. django-socketio-on-dotcloud

Source

django-socketio-on-dotcloud / wsgi.py

import os
import sys

PORT = 9000

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),'hellodjango')))
os.environ['DJANGO_SETTINGS_MODULE'] = 'hellodjango.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

#from socketio.server import SocketIOServer
#
##if __name__ == '__main__':
#print 'Listening on port %s and on port 843 (flash policy server)' % PORT
#SocketIOServer(('', PORT), application, resource="socket.io").serve_forever()