Python+django+channels实现websocket

上传者: 42453088 | 上传时间: 2021-09-02 16:10:23 | 文件大小: 424KB | 文件类型: ZIP
通过目前最为广泛使用的django框架来实现一个即时聊天系统。django和channels的版本都已升级到2.0+,该源代码全部基于新版本实现。

文件下载

资源详情

[{"title":"( 67 个子文件 424KB ) Python+django+channels实现websocket","children":[{"title":"network","children":[{"title":"crossdomain.xml <span style='color:#111;'> 261B </span>","children":null,"spread":false},{"title":"manage.py <span style='color:#111;'> 834B </span>","children":null,"spread":false},{"title":"AppMain","children":[{"title":"apps.py <span style='color:#111;'> 94B </span>","children":null,"spread":false},{"title":"tests.py <span style='color:#111;'> 63B </span>","children":null,"spread":false},{"title":"migrations","children":[{"title":"0001_initial.py <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"__init__.cpython-36.pyc <span style='color:#111;'> 145B </span>","children":null,"spread":false},{"title":"0001_initial.cpython-36.pyc <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"admin.py <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"models.py <span style='color:#111;'> 992B </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"admin.cpython-36.pyc <span style='color:#111;'> 248B </span>","children":null,"spread":false},{"title":"views.cpython-36.pyc <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"models.cpython-36.pyc <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"__init__.cpython-36.pyc <span style='color:#111;'> 134B </span>","children":null,"spread":false}],"spread":true},{"title":"views.py <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"templates","children":[{"title":"login.html <span style='color:#111;'> 890B </span>","children":null,"spread":false},{"title":"websockettest.html <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 324B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 39.84KB </span>","children":null,"spread":false},{"title":"NetWorkMonitor.iml <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true},{"title":"NetWorkMonitor","children":[{"title":"settings.py <span style='color:#111;'> 4.86KB </span>","children":null,"spread":false},{"title":"urls.py <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"routing.py <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"asgi.py <span style='color:#111;'> 783B </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"models.cpython-36.pyc <span style='color:#111;'> 893B </span>","children":null,"spread":false},{"title":"exceptions.cpython-36.pyc <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"routing.cpython-36.pyc <span style='color:#111;'> 532B </span>","children":null,"spread":false},{"title":"urls.cpython-36.pyc <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"utils.cpython-36.pyc <span style='color:#111;'> 755B </span>","children":null,"spread":false},{"title":"__init__.cpython-36.pyc <span style='color:#111;'> 141B </span>","children":null,"spread":false},{"title":"wsgi.cpython-36.pyc <span style='color:#111;'> 558B </span>","children":null,"spread":false},{"title":"settings.cpython-36.pyc <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"consumers.cpython-36.pyc <span style='color:#111;'> 4.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"wsgi.py <span style='color:#111;'> 421B </span>","children":null,"spread":false}],"spread":true},{"title":"Requirement.txt <span style='color:#111;'> 130B </span>","children":null,"spread":false},{"title":"db.sqlite3 <span style='color:#111;'> 152.00KB </span>","children":null,"spread":false},{"title":"WebSocket","children":[{"title":"exceptions.py <span style='color:#111;'> 260B </span>","children":null,"spread":false},{"title":"apps.py <span style='color:#111;'> 88B </span>","children":null,"spread":false},{"title":"consumers.py <span style='color:#111;'> 7.23KB </span>","children":null,"spread":false},{"title":"migrations","children":[{"title":"0001_initial.py <span style='color:#111;'> 573B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"__init__.cpython-36.pyc <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"0001_initial.cpython-36.pyc <span style='color:#111;'> 680B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"utils.py <span style='color:#111;'> 922B </span>","children":null,"spread":false},{"title":"admin.py <span style='color:#111;'> 181B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"models.py <span style='color:#111;'> 566B </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"admin.cpython-36.pyc <span style='color:#111;'> 368B </span>","children":null,"spread":false},{"title":"views.cpython-36.pyc <span style='color:#111;'> 630B </span>","children":null,"spread":false},{"title":"models.cpython-36.pyc <span style='color:#111;'> 928B </span>","children":null,"spread":false},{"title":"exceptions.cpython-36.pyc <span style='color:#111;'> 679B </span>","children":null,"spread":false},{"title":"utils.cpython-36.pyc <span style='color:#111;'> 765B </span>","children":null,"spread":false},{"title":"__init__.cpython-36.pyc <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"consumers.cpython-36.pyc <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"views.py <span style='color:#111;'> 485B </span>","children":null,"spread":false}],"spread":true},{"title":"static","children":[{"title":"crossdomain.xml <span style='color:#111;'> 260B </span>","children":null,"spread":false},{"title":"devifile_psp.ico <span style='color:#111;'> 3.24KB </span>","children":null,"spread":false},{"title":"javascript","children":[{"title":"crossdomain.xml <span style='color:#111;'> 260B </span>","children":null,"spread":false},{"title":"web_socket.js <span style='color:#111;'> 12.98KB </span>","children":null,"spread":false},{"title":"WebSocketMainInsecure.swf <span style='color:#111;'> 173.22KB </span>","children":null,"spread":false},{"title":"WebSocketMain.swf <span style='color:#111;'> 173.08KB </span>","children":null,"spread":false},{"title":"jquery-3.3.1.min.js <span style='color:#111;'> 84.89KB </span>","children":null,"spread":false},{"title":"swfobject.js <span style='color:#111;'> 9.98KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明