Skip to content

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
Member

@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
Member

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
@matthiask matthiask deleted the mk/serializable branch April 1, 2025 09:46
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