创建一个新的 python 虚拟环境或使用系统 python 环境运行以下命令安装依赖。
pip install -r requirements.txt
打开 confs/my.conf
文件,修改其中的配置项以符合你的数据库配置。如果没有请自己创建my.cnf文件
[client]
database = doc_auth
user = <你的数据库用户名>
password = <对应的用户名密码>
default-character-set = utf8
host = 127.0.0.1
port = 3306
在 MySQL 数据库中新建一个名为 doc_auth
的数据库
CREATE DATABASE doc_auth;
在终端中,执行以下指令
python manage.py runserver
在创建app时使用以下命令进行
python manage.py startapp apps/<app_name>