Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D9pouces wsgi.multiprocess 1 #1765

Merged
merged 2 commits into from
May 16, 2023
Merged

D9pouces wsgi.multiprocess 1 #1765

merged 2 commits into from
May 16, 2023

Commits on May 16, 2023

  1. 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.
    d9pouces authored and tim-schilling committed May 16, 2023
    Configuration menu
    Copy the full SHA
    95ab422 View commit details
    Browse the repository at this point in the history
  2. 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 I'm wrong, you can set
    the RENDER_PANELS setting to forcibly control this setting.
    tim-schilling committed May 16, 2023
    Configuration menu
    Copy the full SHA
    75cabbe View commit details
    Browse the repository at this point in the history