You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has anyone had experience with parler in an asynchronous environment?
The problem is, when I call my_model.description, I get the error: You cannot call this from an asynchronous context - use a thread or sync_to_async. Likewise, when I call await sync_to_async(my_model.description)().
What works is if I move description to its own function:
But this effort is immense. Does anyone here have a better idea?
PS Is the project still maintained? at least as I was still in a synchronous environmentIt would be a shame if not, as I have been very happy with the project so far (at least as I was still in a synchronous environment).
The text was updated successfully, but these errors were encountered:
Has anyone had experience with parler in an asynchronous environment?
The problem is, when I call
my_model.description
, I get the error:You cannot call this from an asynchronous context - use a thread or sync_to_async.
Likewise, when I callawait sync_to_async(my_model.description)()
.What works is if I move
description
to its own function:But this effort is immense. Does anyone here have a better idea?
PS Is the project still maintained? at least as I was still in a synchronous environmentIt would be a shame if not, as I have been very happy with the project so far (at least as I was still in a synchronous environment).
The text was updated successfully, but these errors were encountered: