﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33745	There is no easy way to turn off sync_to_async and async_to_sync adapters	abetkin	nobody	"Hi! I have a setup that is deployed with nginx unit (https://unit.nginx.org)

I have 1 asgi and 1 wsgi application, namely for my sync and async endpoints. All my code runs natively, there is no need to adapt my code with sync_to_async-like stuff.

If an async endpoint is routed to the wsgi application, it is AN ERROR for me. That means that I've made a mistake in the config of my server.
However, django will silently adapt it and run in a separate thread.
The same happens if a sync endpoint is dispatched to the asgi application. Again, I want that to be an error!

I haven't found any easy way to turn this behavior off or even to check that this is happening, to log it somewhere. I think this is wrong. "	Bug	new	Uncategorized	4.0	Release blocker				Unreviewed	0	0	0	0	0	0
