Without this, when trying to use the ASGIStaticFilesHandler, this is the
traceback:
{{{#!python
Exception inside application: 'NoneType' object is not callable
Traceback (most recent call last):
File ".../lib/python3.7/site-packages/daphne/cli.py", line 30, in asgi
await self.app(scope, receive, send)
File ".../src/django/django/contrib/staticfiles/handlers.py", line 86,
in __call__
return await super().__call__(scope, receive, send)
File ".../src/django/django/core/handlers/asgi.py", line 161, in
__call__
response = await self.get_response_async(request)
File ".../src/django/django/core/handlers/base.py", line 148, in
get_response_async
response = await self._middleware_chain(request)
TypeError: 'NoneType' object is not callable
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31594>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
Ticket URL: <https://code.djangoproject.com/ticket/31594#comment:1>
* needs_better_patch: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Left comments on the PR regarding the fact the we don't have a way of
serving files asynchronously so far. From what I know local file I/O
requires some form of thread pooling to work correctly.
--
Ticket URL: <https://code.djangoproject.com/ticket/31594#comment:2>
* needs_better_patch: 1 => 0
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31594#comment:3>
* status: new => assigned
* component: Uncategorized => contrib.staticfiles
* needs_tests: 1 => 0
* version: 3.0 => 3.1
* owner: nobody => Joshua Massover
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31594#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"92309e53d9921a60e667656d8dd65e59eb5cf81c" 92309e53]:
{{{
#!CommitTicketReference repository=""
revision="92309e53d9921a60e667656d8dd65e59eb5cf81c"
Fixed #31594 -- Added ASGIStaticFilesHandler.get_response_async().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31594#comment:5>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"3fb69756eac31a07d903cf1f97fc1cce0d3494a5" 3fb69756]:
{{{
#!CommitTicketReference repository=""
revision="3fb69756eac31a07d903cf1f97fc1cce0d3494a5"
[3.1.x] Fixed #31594 -- Added ASGIStaticFilesHandler.get_response_async().
Backport of 92309e53d9921a60e667656d8dd65e59eb5cf81c from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31594#comment:6>