gestioCOF/cof/asgi.py
2018-10-06 13:15:33 +02:00

8 lines
208 B
Python

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")
channel_layer = get_channel_layer()