jezdez/django-staticfiles — pull request #36 by streeter (2012-08-29 04:46:59+00:00)
Title: Use get_internal_wsgi_application in Django 1.4

Mimic the runserver command that ships in Django 1.4 and up more
closely. By default, that command gets the WSGI handler by calling
`get_internal_wsgi_application()`. Without this change, the `runserver`
command ignores the `WSGI_APPLICATION` setting in Django 1.4.
By ignoring the setting, the runserver command will not apply any
WSGI middleware in the wsgi.py file.

If `get_internal_wsgi_application` is not available for import, revert back
to the previous `WSGIHandler()` function.