Commit 68c24c78a8db14680bd1ff2078af4b080ccaacfe

Authored by Rohan Rangray
1 parent 6713d6dc9f
Exists in master

Added wsgi modules for django-websocket-redis

Showing 3 changed files with 11 additions and 1 deletions Side-by-side Diff

flashy/wsgi.py View file @ 68c24c7
... ... @@ -8,7 +8,6 @@
8 8 """
9 9  
10 10 import os
11   -
12 11 from django.core.wsgi import get_wsgi_application
13 12  
14 13 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "flashy.settings")
flashy/wsgi_django.py View file @ 68c24c7
  1 +import os
  2 +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "flashy.settings")
  3 +from django.core.wsgi import get_wsgi_application
  4 +application = get_wsgi_application()
flashy/wsgi_websocket.py View file @ 68c24c7
  1 +import os
  2 +import gevent.socket
  3 +import redis.connection
  4 +redis.connection.socket = gevent.socket
  5 +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "flashy.settings")
  6 +from ws4redis.uwsgi_runserver import uWSGIWebsocketServer
  7 +application = uWSGIWebsocketServer()