Skip to content

holysll/approval-system

 
 

Repository files navigation

项目审批系统

相关截图(文末还有)

all_apply

my_apply_id

安装相关库

$ git clone https://github.com/rmboot/approvalsystem
$ cd approvalsystem
$ pipenv install
$ pipenv shell

初始化数据库

Mysql创建新用户并授权数据库权限

模型映射到数据库

$ python manage.py db init
$ python manage.py db migrate
$ python manage.py db upgrade

初始化role,status,dept表

在数据库控制台执行init.sql的SQL语句

初始化user表

1.取消user.py文件视图函数index的注释,执行
$ flask run
* Running on http://127.0.0.1:5000/
2.访问 http://127.0.0.1:5000/ 会生成相应用户,并打印提示信息
3.Press CTRL+C 关闭Flask,将取消的注释再次注释

所有配置完成,再次执行,然后去登录吧

$ flask run
* Running on http://127.0.0.1:5000/

Pipenv 下载速度太慢可以选择指定源

$ pipenv install --pypi-mirror https://pypi.tuna.tsinghua.edu.cn/simple

或者去看一下Pipenv借助系统环境变量设置国内源

pending_approval

apply

pending_approval_id

License

This project is licensed under the MIT License (see theLICENSE file for details).

About

基于Flask的项目审批系统(Bootstrap+Mysql)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.6%
  • CSS 14.2%
  • PHP 0.2%