summaryrefslogtreecommitdiff
path: root/django/core/wsgi.py
blob: 62aa43bda5de3f07c67c00c7c07ab3ed2fa27287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import django
from django.core.handlers.wsgi import WSGIHandler


def get_wsgi_application():
    """
    The public interface to Django's WSGI support. Should return a WSGI
    callable.

    Allows us to avoid making django.core.handlers.WSGIHandler public API, in
    case the internal WSGI implementation changes or moves in the future.
    """
    django.setup()
    return WSGIHandler()