""" WSGI config for dsp 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 os,sys from django.core.wsgi import get_wsgi_application ####os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dsp.settings') #os.environ["DJANGO_SETTINGS_MODULE"] = 'mobeesia.settings' #application = get_wsgi_application() # Calculate the path based on the location of the WSGI script. apache_configuration= os.path.dirname(__file__) project = os.path.dirname(apache_configuration) workspace = os.path.dirname(project) sys.path.append(workspace) sys.path.append(project) # Add the path to 3rd party django application and to django itself. sys.path.append('/home/ec2-user') os.environ["DJANGO_SETTINGS_MODULE"] = 'mobeesia.settings' application = get_wsgi_application()