Skip to main content

A backstage framework with very few code.

Project description

Flask_Backstage是一个基于flask的后台管理开发框架,能帮助你使用很少的时间和代码量开发出功能完备的管理后台。

Introduction

Flask_Backstage 是基于flask的后台管理系统,采用了简洁强大的flask作为web框架,模板引擎用的是Jinja2,数据库用mongodb,前端AdminLTE框架。

依赖

Flask Flask-Bcrypt Flask-Login flask-mongoengine Flask-WTF

特性

内置用户管理,菜单管理,角色管理系统

提供类似的Flask Admin的BaseView,BaseModelView,帮助用户快速的开发增删改功能

Installation

你可以通过pip快速安装Flask_Backstage扩展:

pip install flask-backstage

Examples

这里有个简单的项目使用案例,你也可以在这个项目的基础上编写自己的项目:https://github.com/huanglong123/flask_backstage_example

在线演示地址:http://backstage.kbiaoqing.cn/

账号:admin 密码:123456

Documentation

简单的使用此项目, 你仅仅需要以下的几行代码:

from flask import Flask
from flask_backstage import Admin

app = Flask(__name__)

# 添加csrf保护配置

app.config['WTF_CSRF_ENABLED'] = True

app.config['SECRET_KEY'] = 'admin'

admin = Admin(app)

app.run()

然后访问 http://127.0.0.1:5000/admin/ 账号:admin 密码:123456

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_backstage-0.1.8.tar.gz (152.8 kB view details)

Uploaded Source

File details

Details for the file flask_backstage-0.1.8.tar.gz.

File metadata

File hashes

Hashes for flask_backstage-0.1.8.tar.gz
Algorithm Hash digest
SHA256 acf423d1834f6b0f035d85bc390b9dcfd9f94e4137941b88dd45d1eff2498e2a
MD5 c146e16607f95178c7d9927fac2dc507
BLAKE2b-256 4544db7b986152b3abf1fa5c4a7d7acd7f902e53c905fbb44f0ff81c3ccc79d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page