kpsul/cof/asgi.py

8 lines
207 B
Python
Raw Normal View History

2016-09-06 01:26:44 +02:00
import os
from channels.asgi import get_channel_layer
if "DJANGO_SETTINGS_MODULE" not in os.environ:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cof.settings")
2016-09-06 01:26:44 +02:00
channel_layer = get_channel_layer()