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

Hacky way of getting the toolbar to work under ASGI #1818

Closed
wants to merge 6 commits into from

Conversation

matthiask
Copy link
Member

@tim-schilling I got the idea to try what happens when converting all of the toolbar to run in async mode only and let Django handle the synchronous case. Surprisingly enough almost everything just works. I don't know if we should pursuse this path but if we can let Django to the sync/async coordination we would have much much less to do.

@tim-schilling
Copy link
Contributor

@matthiask what is all included when you say "almost everything just works"?

@matthiask
Copy link
Member Author

@tim-schilling I'm sorry, that was premature. I was happy that it worked at all and didn't check thoroughly. Templates, caches, headers etc. work fine, and requests go through (responses are actually returned to the client) so that's much bette than the status quo already but not that much either.

Still, I think making the toolbar middleware async-only may be the way to go.

@tim-schilling
Copy link
Contributor

No worries. I'm just trying to understand what you tested to confirm that it works.

@matthiask
Copy link
Member Author

Closing this for now since I didn't have any bandwidth to continue working on this during the last few months. This probably will not change soon so I'm setting my priorities.

@matthiask matthiask closed this Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants