1

I have the following content in wsgi.py file:

import os
import sys

from channels.asgi import get_channel_layer
from django.core.wsgi import get_wsgi_application

sys.path.append('/home/project')
sys.path.append('/home/project/Project_Web_Main')

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Project_Web_Main.settings")

application = get_wsgi_application()
channel_layer = get_channel_layer()

but I have the following error when importing: from channels.asgi import get_channel_layer

ImportError: No module named channels.asgi

yasin
  • 107
  • 10

0 Answers0