|
há 1 ano atrás | |
---|---|---|
algorithm | há 1 ano atrás | |
application | há 1 ano atrás | |
conf | há 1 ano atrás | |
dvadmin | há 1 ano atrás | |
plugins | há 1 ano atrás | |
static | há 1 ano atrás | |
templates | há 1 ano atrás | |
.gitignore | há 1 ano atrás | |
README.zh.md | há 1 ano atrás | |
del_migrations.py | há 1 ano atrás | |
docker_start.sh | há 1 ano atrás | |
gunicorn_conf.py | há 1 ano atrás | |
manage.py | há 1 ano atrás | |
requirements.txt | há 1 ano atrás |
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
superadmin
密码:admin123456