Skip to content

the backend for DocAuth, a web application for team review

License

Notifications You must be signed in to change notification settings

Yurzi/DocAuth-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

如何配置开发环境

获取依赖

创建一个新的 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

在创建app时使用以下命令进行

python manage.py startapp apps/<app_name>

About

the backend for DocAuth, a web application for team review

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages