Answer the question
In order to leave comments, you need to log in
How to solve error while preparing websocket on django 3.1?
Preparing websoketa for django 3.1. I use the recipe: https://alex-oleshkevich.medium.com/websockets-in-... . And everything is clear, but something does not work. Falls by mistake:
Traceback (most recent call last):
File "C:\Python\3.8\lib\wsgiref\handlers.py", line 137, in run
self.result = application(self.environ, self.start_response)
File "C:\Python\ENV\myapp\lib\site-packages\django\contrib\staticfiles\handlers.py", line 76, in __call__
return self.application(environ, start_response)
TypeError: wsgi() missing 1 required positional argument: 'send'
TypeError: wsgi() missing 1 required positional argument: 'send'
I prepare Waitress like this: next to manage.py , I create server.py :from waitress import serve
from myapp.wsgi import application
if __name__ == '__main__':
serve(application, port='5678')
$ python server.py
or waitress-serve --port=5678 myapp.wsgi:application
-- same error with 'send' argument... Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question