-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If wsgi.multiprocess isn't set, render panels on each request.
* Avoid an exception with Django-channels If you apply Django middlewares on a HttpRequest without "wsgi.multiprocess" in META, an exception is raised by DJT. This simple patch avoids this bug. * If wsgi.multiprocess isn't set, render panels on each request. The likely cause of this is that the application is using ASGI since wsgi.multiprocess is a required key for a WSGI application. Since the toolbar currently doesn't support async applications, it's pretty likely that it won't work for this request. If you're a developer reading this and you think this is wrong, you can set the RENDER_PANELS setting to forcibly control this setting. --------- Co-authored-by: tschilling <schillingt@better-simple.com>
- Loading branch information
1 parent
1960ca3
commit af7d15f
Showing
3 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters