""" WSGI config for core_images 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.0/howto/deployment/wsgi/ """ import sys if not (len(sys.argv) > 1 and sys.argv[1] == "runserver"): from gevent import monkey monkey.patch_all() import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core_images.settings") application = get_wsgi_application()