Files
OneTrip/one_trip_api/one_trip_api/wsgi.py
2022-11-30 02:52:56 -07:00

22 lines
534 B
Python

"""
WSGI config for one_trip_api 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/4.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
settings = 'one_trip_api.settings.dev'
if os.getenv("DJANGO_RELEASE", False):
settings = 'one_trip_api.settings.release'
os.environ.setdefault('DJANGO_SETTINGS_MODULE', settings)
print("WSGI Started")
application = get_wsgi_application()