Open kopy-kat opened 4 years ago
i got the same error ,can anyone look at it.
Check updated package - 0.3.0 I've to tried to get it working with django 3.0.5 but had not luck atm I've played sync_to_async wrapper for an hour but didn't manage to get it going Feel free to submit the PR if you have more luck The package is only compatible with Django < 3.0 atm
Thanks, i will try the django version < 3.0
I don't know if it's bug in Django, but in version 3.0.1 Django add with a new setting to skip the async_unsafe check. so juste add : os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" in your Django settings . I hope that's will help you . Once the ORM gets async support probably have to rewrite the project to support it
Does anyone know if this is simply Django 3 being more aggressive than Django 2 in checking for async-unsafe operations, or if it is actually less safe than it was in Django 2? Is setting os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" a very bad solution to this problem, or should it then run exactly as it does in Django 2?
Description
I first tried to implement django-private-chat into an existing project which did not work. To figure out what my problem was, I tried to run the example project and encountered the same problem.
What I Did
I ran both run_server and run_chat_server without errors. Upon trying to send a message I got the following error.