"""
WSGI config for parts 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

from django.core.wsgi import get_wsgi_application
from manage import get_secret

env = get_secret("ENVIRONMENT").capitalize()

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "parts.config")
os.environ.setdefault("DJANGO_CONFIGURATION", env)

application = get_wsgi_application()
