diff --git a/config/wsgi.py b/config/wsgi.py index cd6eab5..9634b0a 100644 --- a/config/wsgi.py +++ b/config/wsgi.py @@ -1,15 +1,11 @@ -"""WSGI config for config 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/6.0/howto/deployment/wsgi/ -""" - 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("DJANGO_SETTINGS_MODULE", "config.settings") -application = get_wsgi_application() +application: WSGIHandler = get_wsgi_application()