the public interface to django s wsgi support return a wsgi callable avoids making django core handlers wsgihandler a public api in case the internal wsgi implementation changes or moves in the future the public interface to django s wsgi support return a wsgi callable avoids making django core handlers wsgihandler a public api in case the internal wsgi implementation changes or moves in the future
import django
from django.core.handlers.wsgi import WSGIHandler


def get_wsgi_application():
    
    django.setup(set_prefix=False)
    return WSGIHandler()