mirror of
https://github.com/django/daphne.git
synced 2025-11-11 04:57:44 +03:00
* Added in simple locust file * Correcting the file name * Updated to latest version of daphne * moving settings up * Moved over channels settings * Removed channels settings * Removed settings file * Moved around files * Made a file for normal wsgi * Changed regular wsgi to point to channels settings * Create __init__.py * Added in the appropriate import * Named it right * Create urls_no_channels.py * Delete urls_no_channels.py * Doing this so I don't have to have multiple urls * Update urls.py * Update urls.py * Added in fabric cmd for installing nodejs loadtest * Added in git dependency * Added in a symlink for loadtest * Made run_loadtest command * Added in argument for time * Changed to format on string * Updated arguments * Fixed typo for argument * Made some comments and moved around some tasks * Edits to readme * Add a lot more documentation * Adjusted formatting * Added a comment * Made formatting cahnges * Slight language change * Changed name for testing * Changed name for testing * Update asgi.py * Added in alternate ChannelLayer * Rename chanells_inmemory.py to chanels_inmemory.py * Rename chanels_inmemory.py to channels_inmemory.py * Create asgi_inmemory * Rename asgi_inmemory to asgi_inmemory.py * Added in routing * Switching to instantiated class * Update channels_inmemory.py * Update channels_inmemory.py * Altered the fabric testing tasks * Update and rename asgi_inmemory.py to asgi_ipc.py * Update and rename channels_inmemory.py to channels_ipc.py * Updated to include asgi_ipc * Updated environment setup task * Spelling * Updated channel layer * Update asgi_ipc.py * Rename asgi_ipc.py to asgi_for_ipc.py * Update asgi_for_ipc.py * Trying something * Trying something else * Changed it back * changed back
6 lines
178 B
Python
6 lines
178 B
Python
import os
|
|
from channels.asgi import get_channel_layer
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.settings.channels_redis")
|
|
channel_layer = get_channel_layer()
|