<filename>workon/contrib/flow/server/uwsgi.sample.py
import os, sys

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings.dev")

# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application
from django.conf import settings
from ..redis_ws.uwsgi_runserver import uWSGIWebsocketServer


#_django_app = get_wsgi_application()
_websocket_app = uWSGIWebsocketServer()

def application(environ, start_response):
    if environ.get('PATH_INFO').startswith(settings.WEBSOCKET_URL):
        return _websocket_app(environ, start_response)
    #return _django_app(environ, start_response)
<filename>workon/contrib/flow/server/uwsgi.sample.py
import os, sys

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings.dev")

# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application
from django.conf import settings
from ..redis_ws.uwsgi_runserver import uWSGIWebsocketServer


#_django_app = get_wsgi_application()
_websocket_app = uWSGIWebsocketServer()

def application(environ, start_response):
    if environ.get('PATH_INFO').startswith(settings.WEBSOCKET_URL):
        return _websocket_app(environ, start_response)
    #return _django_app(environ, start_response)
# This application object is used by any WSGI server configured to use this # file. This includes Django's development server, if the WSGI_APPLICATION # setting points here. #_django_app = get_wsgi_application() #return _django_app(environ, start_response)