Refactor wsgi.py to improve type hinting and remove unnecessary docstring

This commit is contained in:
Joakim Hellsén 2026-03-23 23:32:32 +01:00
commit 232f1b7f66
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk

View file

@ -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 import os
from typing import TYPE_CHECKING
from django.core.wsgi import get_wsgi_application 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") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
application = get_wsgi_application() application: WSGIHandler = get_wsgi_application()