暂无描述

allen 62965726c0 update 1 年之前
algorithm bc51f4ed00 first commit 1 年之前
application bc51f4ed00 first commit 1 年之前
conf 62965726c0 update 1 年之前
dvadmin bc51f4ed00 first commit 1 年之前
plugins bc51f4ed00 first commit 1 年之前
static bc51f4ed00 first commit 1 年之前
templates bc51f4ed00 first commit 1 年之前
.gitignore 62965726c0 update 1 年之前
README.zh.md 62965726c0 update 1 年之前
del_migrations.py bc51f4ed00 first commit 1 年之前
docker_start.sh bc51f4ed00 first commit 1 年之前
gunicorn_conf.py bc51f4ed00 first commit 1 年之前
manage.py bc51f4ed00 first commit 1 年之前
requirements.txt bc51f4ed00 first commit 1 年之前

README.zh.md

启动

1.复制 ./conf/env.example.py 文件为一份新的到 ./conf 文件夹下,并重命名为 env.py
2. 在 env.py 中配置数据库信息
	mysql数据库版本建议:8.0
	mysql数据库字符集:utf8mb4
3. 安装依赖环境
	pip3 install -r requirements.txt
4. 执行迁移命令:
	python3 manage.py makemigrations
	python3 manage.py migrate
5. 初始化数据
	python3 manage.py init
6. 初始化省市县数据:
	python3 manage.py init_area
7. 启动项目
	python3 manage.py runserver 0.0.0.0:8000
或使用 gunicorn :
  gunicorn -c gunicorn_conf.py application.asgi:application

访问项目

  • 访问地址:http://localhost:8080 (默认为此地址,如有修改请按照配置文件)
  • 账号:superadmin 密码:admin123456