Great! Well the two line patch I suggested to `get_wsgi_application` solves the problem. But it still leaves the lazy loading mechanism in the code base. Getting rid of it would obviously be preferable, but is more complex. I'll work on producing a patch for that though.
Dave On 25 Mar 2016 10:08 a.m., "Florian Apolloner" <f.apollo...@gmail.com> wrote: > +1 -- Patches welcome :D > > On Friday, March 25, 2016 at 11:02:26 AM UTC+1, Aymeric Augustin wrote: >> >> On 24 Mar 2016, at 17:39, David Evans <drh....@gmail.com> wrote: >> >> >> Currently, middleware is initialized lazily on serving the first request, >> rather than on application start. There may well have been good reasons for >> this historically, but I don't think they apply any longer. >> >> >> Indeed, since 1.7 and the app-loading refactor, Django does its best to >> crash when it starts rather than when it serves the first request. +1 to >> making this change. >> >> -- >> Aymeric. >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Django developers (Contributions to Django itself)" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/django-developers/iIm7M6aUJmU/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > django-developers+unsubscr...@googlegroups.com. > To post to this group, send email to django-developers@googlegroups.com. > Visit this group at https://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/3d63f9d8-8781-4b9e-8498-9cc7c091831b%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/3d63f9d8-8781-4b9e-8498-9cc7c091831b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAHbVmPyedP2p6YmMyJuChks8JPZyG2eyVx3cr8Vaavyfm64nFg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.