import os
import channels.asgi

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
channel_layer = channels.asgi.get_channel_layer()

import os
import channels.asgi

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production")
channel_layer = channels.asgi.get_channel_layer()

Change to production settings for asgi