# websocket **Repository Path**: auto_testin/websocket ## Basic Information - **Project Name**: websocket - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-14 - **Last Updated**: 2021-10-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目说明 此项目为chat聊天室的Demo,依赖环境 - python 3.6 - django 2.1/2.2 - adminlte 2.4 # 部署方法 1.安装基础环境 ``` pip install -r requirements.txt ``` 2.初始化数据库 ``` python manage.py migrate ``` 3.运行项目 ``` python manage.py runserver 0.0.0.0:8000 ``` 4.后端接口 ``` ws://127.0.0.1:8000/ws/chat/ { "message": "你好2222" } ``` 5.更改settings中redis的地址 6.前端地址 ``` 127.0.0.1:8000/chat/ ```