SynchronousOnlyOperation in django.setup

74 views
Skip to first unread message

Caleb Collins-Parks

unread,
Feb 15, 2022, 3:31:40 PM2/15/22
to Django users
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.


Reply all
Reply to author
Forward
0 new messages