2
0

wsgi.py 497 B

12345678910111213141516171819
  1. """
  2. WSGI config for portal project.
  3. It exposes the WSGI callable as a module-level variable named ``application``.
  4. For more information on this file, see
  5. https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
  6. """
  7. import os
  8. import dotenv
  9. from django.core.wsgi import get_wsgi_application
  10. dotenv.read_dotenv(os.path.join(os.path.dirname(os.path.dirname(__file__)), ".env"))
  11. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bakerydemo.settings.dev")
  12. application = get_wsgi_application()