On Mon, Mar 21, 2016 at 9:55 AM, David Evans <drh.ev...@gmail.com> wrote:
> On the static files question, I'm about to release v3 of WhiteNoise ( > http://whitenoise.evans.io/en/latest/changelog.html) which provides the > option to integrate via Django middlware, rather than wsgi middleware. (It > uses the FileResponse class, which didn't exist when I first wrote > WhiteNoise.) I'm hoping (though I haven't tested it yet) that this will > work out of the box with Channels, as it's only using standard Django APIs. > > Yes, as long as you use the standard Django file response stuff it should work just fine (I made sure of that so staticfiles' serving class worked). The only difference is that Channels prefers a chunking size of around 256KB, whereas the default is 2KB, which causes a whole lot of messages, but I can move the code that adjusts it up for FileResponses to the main handling code rather than just Staticfiles, so it should be fine. Andrew -- 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/CAFwN1uoPd-2XZOBWbRORBRQ1V%2Bt5D_BVfeRfS2EAzroTtmCW6g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.