Commit 68c24c78a8db14680bd1ff2078af4b080ccaacfe
1 parent
6713d6dc9f
Exists in
master
Added wsgi modules for django-websocket-redis
Showing 3 changed files with 11 additions and 1 deletions Inline Diff
flashy/wsgi.py
View file @
68c24c7
""" | 1 | 1 | """ | |
WSGI config for flashy project. | 2 | 2 | WSGI config for flashy project. | |
3 | 3 | |||
It exposes the WSGI callable as a module-level variable named ``application``. | 4 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. | |
5 | 5 | |||
For more information on this file, see | 6 | 6 | For more information on this file, see | |
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ | 7 | 7 | https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ | |
""" | 8 | 8 | """ | |
9 | 9 | |||
import os | 10 | 10 | import os |
flashy/wsgi_django.py
View file @
68c24c7
File was created | 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
File was created | 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() |