django-staticfiles icon indicating copy to clipboard operation
django-staticfiles copied to clipboard

Use get_internal_wsgi_application in Django 1.4

Open streeter opened this issue 12 years ago • 5 comments

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.

streeter avatar Aug 29 '12 04:08 streeter

This pull request fails (merged 4838550b into b1540da3).

travisbot avatar Aug 29 '12 04:08 travisbot

This pull request fails (merged 80e7a0aa into b1540da3).

travisbot avatar Aug 29 '12 04:08 travisbot

So I ran make test on all three supported Django versions, and they passed. It looks like the flake8 tests are failing, but not for reasons in this this pull request.

streeter avatar Aug 29 '12 05:08 streeter

Yeah, this is expected, flake8 got much more pedantic recently, I'll fix this before merging.

jezdez avatar Aug 29 '12 05:08 jezdez

You don't have to pull in 80e7a0a as it was an attempt to quell (what I thought) was the flake8 error.

streeter avatar Aug 29 '12 05:08 streeter