1。先pip install django==1.11.7 -i https://pypi.doubanio.com/simple
2。完成后查看版本:python -m django --version ;
3。初始化(建立)项目:django-admin startproject dj_websocket (ubuntu下 需要 sudo apt-get install python-django )
4。初始化(建立)应用:django-admin startapp socket
5。启动项目:python manage.py runserver 0.0.0.0:8000