-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Random notes and stuff, likely to become feedback to Andrew: | ||
|
||
- static files is weird. how should it work in prod? WhiteNoise-ish would be | ||
ideal; integrate with Daphe? | ||
- channel backend - parse from URL? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
web: daphne channels_example.asgi:channel_layer | ||
worker: python manage.py runworker | ||
web: daphne channels_example.asgi:channel_layer --port $PORT --bind 0.0.0.0 -v2 | ||
worker: python manage.py runworker -v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- websockets duh | ||
- include old-school django POST view? | ||
might make a good flow for the article, start with old-style and then add WSS | ||
- channels backend shouild use config var (URL-ish? | ||
- test deploy to heroku | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
channel_routing = {} | ||
from channels.staticfiles import StaticFilesConsumer | ||
|
||
channel_routing = { | ||
# This makes Django serve static files from settings.STATIC_URL, similar | ||
# to django.views.static.serve. This isn't ideal (not exactly production | ||
# quality) but it works for a minimal example. | ||
'http.request': StaticFilesConsumer() | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ Django | |
channels | ||
dj-database-url | ||
psycopg2 | ||
whitenoise | ||
asgi_redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hi |