Closed praveenydv closed 3 years ago
I don't use Django a lot, but based on the error message this means that you are passing a model object obtained in one thread to another thread, which is actually not a valid use case. What you need to do is pass the object id to the other thread, so that it can load the object from the database directly in that same thread.
This error is unrelated to this package, by the way. It's just that this package uses threads so you have to be careful about the threading requirements in Django ORM.
my wsgi.py:
my websocketserver.py
when I run command :
then I am getting error on send_mssg event:
I have checked that when I call send_mssg event then It gives error when new message instance is creating...
How to solve this?? Plz help!!!