Skip to main content

get_internal_wsgi_application

Load and return the WSGI application as configured by the user in settings.WSGI_APPLICATION. With the default startproject layout, this will be the application object in projectname/wsgi.py. This function, and the WSGI_APPLICATION setting itself, are only useful for Django's internal server (runserver); external WSGI servers should just be configured to point to the correct application object directly. If settings.WSGI_APPLICATION is not set (is None), return whatever django.core.wsgi.get_wsgi_application returns.

def get_internal_wsgi_application() - > WSGI application

Load and return the WSGI application as configured by the user in settings.WSGI_APPLICATION. With the default startproject layout, this will be the application object in projectname/wsgi.py. This function, and the WSGI_APPLICATION setting itself, are only useful for Django's internal server (runserver); external WSGI servers should just be configured to point to the correct application object directly. If settings.WSGI_APPLICATION is not set (is None), return whatever django.core.wsgi.get_wsgi_application returns.

Returns

TypeDescription
WSGI applicationThe WSGI application object used by Django's internal server, or the default application if no specific path is configured.