surveySystem
Thank you to all the people who already contributed to this project!
Introduction
后端使用 django & DRF 实现的 restfulApi
前端使用 vue & element-ui
开发环境
Python 3.6.8
Django 2.1.5
Drf 3.9.4
Quick Tutorial
使用虚拟环境(virturalenv)
pip3 install virtualenv
切换到项目目录下, 执行下面的命令
source venv/bin/activate
pip install -r requirements.txt
生成表结构
默认使用 sqlite 数据库
如果您想使用 mysql 数据库,请移步至常见问题(配置完成后,继续如下操作)。
python manage.py makemigrations
python manage.py migrate
导入虚拟数据
python manage.py loaddata init.json
启动项目
python manage.py runserver 0.0.0.0:8023
后台地址:
127.0.0.1:8023/admin/
账号密码 root root23456
效果图及代码结构图