gestioCOF/cof/asgi.py
2016-09-24 19:34:36 +02:00

7 lines
207 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()