samrose3/dadjokes

View on GitHub
dadjokes/wsgi.py

Summary

Maintainability
A
3 hrs
Test Coverage
"""
WSGI config for dadjokes project.
"""

import os
import dotenv
from django.core.wsgi import get_wsgi_application

dotenv.read_dotenv(os.path.join(os.path.dirname(os.path.dirname(__file__)), '.env'))

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dadjokes.settings")

application = get_wsgi_application()