-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Django] You cannot call this from an async context - use a thread or sync_to_async. #36
Comments
as per https://plugins.jetbrains.com/plugin/13264-pycrunch--live-testing/reviews |
upon triggering test
|
Hello, thanks for detailed report. I was able to reproduce the issue using the latest Django (3.1.4) I will provide more details after investigation. |
Quick workaround would be setting
|
Thanks that will work my purposes. I appreciate the quick response. |
I have the same error , but I don't have the file! how can I solve it? |
@shakori999 this file will be created at the first run of the engine in the root directory of the project. You might have an old version of package (when configuration file is not created automatically), make sure to update via |
If I run
manage.py test
, that will work as expected however when running via pycrunch IJ plugin I see this:django.core.exceptions.SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async.
django==3.1.4
actual test:
full error output:
The text was updated successfully, but these errors were encountered: