Tuesday, February 15, 2022

SynchronousOnlyOperation in django.setup

django.setup can call functions that call the database, which when running in a async context results in a SynchronousOnlyOperation error. See https://stackoverflow.com/questions/64306187. Was this possibility considered when the get_asgi_application function was created? I'm curious if this is intentional behavior or something that can be improved on.

Relevant PR: https://github.com/django/django/pull/11209

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a3b0a561-834e-4b09-93ca-ad40a9bdd1dcn%40googlegroups.com.

No comments:

Post a Comment