Files
pear-admin-flask/README.md
T
2021-03-21 23:01:30 +08:00

92 lines
2.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div align="center">
<br/>
<br/>
<img src="https://gitee.com/pear-admin/Pear-Admin-Layui/raw/master/admin/images/logo.png" width="90px" style="margin-top:30px;"/>
<h1 align="center">
Pear Admin Flask
</h1>
<h4 align="center">
开 箱 即 用 的 Flask 快 速 开 发 平 台
</h4>
[预 览](http://flask.pearadmin.com) | [官 网](http://www.pearadmin.com/) | [群聊](https://jq.qq.com/?_wv=1027&k=5OdSmve) | [社区](http://forum.pearadmin.com/)
<p align="center">
<a href="#">
<img src="https://img.shields.io/badge/pear%20admin%20flask-0.1-green" alt="Pear Admin Layui Version">
</a>
<a href="#">
<img src="https://img.shields.io/badge/JQuery-2.0+-green.svg" alt="Jquery Version">
</a>
<a href="#">
<img src="https://img.shields.io/badge/Layui-2.5.6+-green.svg" alt="Layui Version">
</a>
</p>
</div>
<div align="center">
<img width="92%" style="border-radius:10px;margin-top:20px;margin-bottom:20px;box-shadow: 2px 0 6px gray;" src="https://images.gitee.com/uploads/images/2020/1019/104805_042b888c_4835367.png" />
</div>
#### 项目简介
>Pear Admin Flask 基于 Flask 1.12 的后台管理系统模板,得益于Python 的生态广泛应用,通过使用本系统,即可快速构建你的功能业务,努力成为最顺手的工具。
>
>目前Flask后台管理系统几乎处于空白状态,本项目希望获得各位Python爱好者的改正与指点
#### 版本说明
Pear Admin Flask 分为俩个版本:
**[数据库权限管理版本](https://gitee.com/pear-admin/pear-admin-flask/tree/master/) 开发中**
[**yaml权限管理版本(简洁版)**](https://gitee.com/pear-admin/pear-admin-flask/tree/simple/)
#### 环境要求
* python >= 3.6
* mysql>=5.7
#### 安装配置
```bash
#下载项目
git clone https://gitee.com/pear-admin/pear-admin-flask
#安装依赖
pip install -r requirement.txt
#修改数据库连接配置文件
applications\config\database.py
```
```python
#修改数据库连接配置文件applications\config\database.py
#修改成你自己的
HOST = '127.0.0.1'
PORT = '3306'
DATABASE = 'PearAdminFlask'
USERNAME = 'root'
PASSWORD = 'root'
```
>推荐使用虚拟环境 venv
>
>```bash
>python -m venv venv
>```
>
```bash
#进入开发目录
cd dev
#执行初始化数据库脚本
python initDb.py
#如果报模块路径错误
python dev/initDb.py
```
然后,你可以使用 flask run 命令启动项目了