Skip to content

基于Python+Django开发的接口自动化测试平台后端

Notifications You must be signed in to change notification settings

Cassianvale/linerunner-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linerunner-backend

Static Badge Static Badge

部署环境

  • python>=3.8.10
  • mysql==5.7
  • pip>=20.1.1

后端部署

  1. 创建并启用python虚拟环境(以下仅为vscode虚拟环境配置)
  • cd linerunner-backend
  • python -m venv .venv
  • source .venv/Scripts/activate
  1. 安装依赖(国内镜像源加速) pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
  2. 生成迁移脚本 ps: apps目录下的migrations文件夹不要删,不然执行迁移时会检索不到应用 python manage.py makemigrations
  3. 迁移数据库 python manage.py migrate
  4. 初始化用户数据 (超管 admin qa123456) python manage.py loaddata user
  5. 运行 python manage.py runserver
  6. 暂无前端页面,可以进入 http://127.0.0.1:8000/admin/ 查看功能

I.更新依赖文件 pip freeze > ./requirements.txt II.异常情况清空数据库数据 python manage.py flush

image1

image2

About

基于Python+Django开发的接口自动化测试平台后端

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages