14 lines
307 B
Python
14 lines
307 B
Python
import os
|
|
from typing import TYPE_CHECKING
|
|
|
|
from django.core.wsgi import get_wsgi_application
|
|
|
|
if TYPE_CHECKING:
|
|
from django.core.handlers.wsgi import WSGIHandler
|
|
|
|
os.environ.setdefault(
|
|
key="DJANGO_SETTINGS_MODULE",
|
|
value="config.settings",
|
|
)
|
|
|
|
application: WSGIHandler = get_wsgi_application()
|