""" WSGI config for Tierra2 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/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from Django_server.startup import run from Django_server.configure import config from django.core.management import execute_from_command_line os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Django_server.settings') # Run custom startup run() # Configuring environment config(force=False) # Collect satic files execute_from_command_line(['manage.py', 'collectstatic', '--noinput']) application = get_wsgi_application()