Commit 3817d63468dcec58f8e1b8f17e9cc5280cc9907f

Authored by Andrew Buss
1 parent 33c5f1825c
Exists in master

added django websocket redis

Showing 2 changed files with 8 additions and 3 deletions Side-by-side Diff

flashy/settings.py View file @ 3817d63
... ... @@ -24,11 +24,14 @@
24 24 'django.contrib.sessions',
25 25 'django.contrib.messages',
26 26 'django.contrib.staticfiles',
27   -
  27 + 'ws4redis',
28 28 'rest_framework_swagger',
29 29 'rest_framework',
30 30 ]
31 31  
  32 +WEBSOCKET_URL = '/ws/'
  33 +
  34 +
32 35 MIDDLEWARE_CLASSES = (
33 36 'django.contrib.sessions.middleware.SessionMiddleware',
34 37 'django.middleware.common.CommonMiddleware',
35 38  
... ... @@ -57,12 +60,14 @@
57 60 'django.template.context_processors.request',
58 61 'django.contrib.auth.context_processors.auth',
59 62 'django.contrib.messages.context_processors.messages',
  63 + 'django.core.context_processors.static',
  64 + 'ws4redis.context_processors.default',
60 65 ],
61 66 },
62 67 },
63 68 ]
64 69  
65   -WSGI_APPLICATION = 'flashy.wsgi.application'
  70 +WSGI_APPLICATION = 'ws4redis.django_runserver.application'
66 71  
67 72 DATABASES = {
68 73 'default': {
requirements.txt View file @ 3817d63
1 1 #beautifulsoup4
2 2 Django>=1.8
3   -#django-websocket-redis==0.4.3
  3 +django-websocket-redis
4 4 #gevent==1.0.1
5 5 #greenlet==0.4.5
6 6 #redis==2.10.3