you need to build uWSGI with SSL support to use the websocket handshake api function !!! django+uwsgi+nginx https://stackoverflow.com/questions/24183053/how-to-build-uwsgi-with-ssl-support-to-use-the-websocket-handshake-api-function 只需要安装openssl,然后重启uwsgi即可 apt-get install libssl-dev