﻿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
35245	Django freezes on DRF's APIView.	Luis Grau Martín Maldonado	nobody	"This issue is very similar to this one: [https://code.djangoproject.com/ticket/34747#ticket]

However, there is only the necessary middleware:

{{{
MIDDLEWARE = [
""django.contrib.sessions.middleware.SessionMiddleware"",
""django.contrib.auth.middleware.AuthenticationMiddleware"",
""django.contrib.messages.middleware.MessageMiddleware"",
 ]
}}}

Instead of putting here snippets, I have created a repo with a dockerfile, docker-compose and minimum project that shows the problem [https://github.com/LuisGMM/django_bug]

Inside it you can do {{{docker-compose up}}} and access to [http://0.0.0.0:8000/endpoint/] to check the view with the problem. If the lines in MyProvider are commented, it works.
"	Bug	closed	Database layer (models, ORM)	5.0	Normal	invalid	ORM, async, bug		Unreviewed	0	0	0	0	0	0
