""" WSGI config for pycs_backend project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os import socketio from django.contrib.staticfiles.handlers import StaticFilesHandler from django.core.wsgi import get_wsgi_application from pycs_socketio import sio os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pycs_backend.settings') django_app = StaticFilesHandler(get_wsgi_application()) application = socketio.WSGIApp(sio, django_app)