1 Star 0 Fork 269

黄杰 / django-vue-lyadmin

forked from lybbn / django-vue-lyadmin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

Django-Vue-Lyadmin

img PyPI - Django Version badge img img

官方文档 | 演示(基础版 专业版)| Go语言版 | 在线课程 | 捐赠

slogon

一个开箱即用的低代码中后台管理系统

前端frontend:做一个专业前端能用的框架,后台人员也能面向配置的、能改得动的CRUD 后端backend :强大的功能集合,让你开箱即用,成为初学者的领航员

在线体验

说明:专业版【代码生成】【表单构建】稳定版已出,可适用大部分简单crud场景

eleunipy系统是结合 django-vue-lyadmin unielepy 在全栈开发中,能让开发者挑选模板/组件/源码实现低代码、避免重复造轮子快速完成项目,模板持续更新中...

平台简介

django-vue-lyadmin 是一套python django web前后端分离的管理后台快速开发平台(内置简易商城模块),去繁从简、还你一个干净的后台管理系统

说明:前端vue环境开发支持vite和webpack两种形式,可自由选择

  • 代码生成: 前端配置即可生成前后台所需的crud文件,并同步到项目目录中
  • 表单构建: 可视化低代码表单设计器,后期规划自动生成前后台,并提供模板方便导入所需表单
  • 前端采用Vue3(elementplus 2.3.6 支持暗黑主题)(vue2版本请访问分支django-vue2-lyadmin)
  • 前端支持面向配置的CRUD和自定义页面的CRUD双开发模式
  • DashBoard: 数据分析查看
  • 计划任务(定时任务,运维能力),django-celery-beat 定时任务
  • 服务器监控面板(运维能力),支持windows和linux服务器的实时服务器资源状态监控
  • 终端服务webssh(运维能力),支持基于channels的websocket与xterm的webssh(实现websocket的simple-jwt认证,并实现请求方法和接口地址的权限控制)
  • 后端采用Python语言Django框架
  • 权限认证使用JWT(djangorestframework-simplejwt),支持多终端认证系统
  • 接口采用(drf)djangorestframework,支持后台一键关闭前端API访问功能
  • 支持加载动态权限菜单,内置常用模块,多方式轻松权限控制,支持单用户登录(踢掉上一个)
  • 支持支付宝、微信支付、微信登录、阿里云短信、腾讯云短信等
  • 新增商城模块:商品管理、订单管理、财务统计、支付接口(微信支付(app端、小程序端)、支付宝(app端)供参考)....
  • 适合刚入门或苦于寻找django web快速开发框架的小伙伴们

特别鸣谢:本平台后端权限设计模式,部分逻辑参考django-vue-admin-pro

文档地址

文档地址:文档在本项目的wiki中会持续更新,也可以通过官网访问:www.lybbn.cn

补充:如果想找到1.x版本(vue2)标准模块(不带商城功能)的,可前往 正式版v1.0.20 版本进行下载

交流

  • 开发者WX号:laoyanyj

  • QQ群号:

  1. django-vue-lyadmin交流01群(已满):755277564
  2. django-vue-lyadmin交流02群:877020250 点击链接加入群聊
  • 二维码:

源码地址

gitee地址(主推):https://gitee.com/lybbn/django-vue-lyadmin

内置功能

  1. DashBoard: 数据分析查看
  2. CRUD: 面向配置的crud功能
  3. 计划任务(定时任务,运维能力),django-celery-beat 定时任务
  4. 服务器监控面板(运维能力),支持windows和linux服务器的实时服务器资源状态监控
  5. 终端服务webssh(运维能力),支持基于channels的websocket与xterm的webssh(实现websocket的simple-jwt认证,并实现请求方法和接口地址的权限控制)
  6. 部门管理:配置系统组织机构(公司、部门、角色),树结构展现支持数据权限。
  7. 菜单管理:配置系统菜单,操作权限,按钮权限标识、后端接口权限等。
  8. 角色管理:角色菜单权限、数据权限、设置角色按部门进行数据范围权限划分。
  9. 权限管理:授权角色的权限范围。
  10. 地区管理:国内省市区管理。
  11. 管理员管理:主要管理系统管理员账号。
  12. 用户管理:主要管理前端用户。
  13. 个人中心:主要设置登录系统的个人昵称、密码等账号信息。
  14. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。
  15. 平台设置:系统设置如字典参数、轮播图
  16. 意见反馈:配合前端接口收集用户的反馈信息
  17. 商品管理:支持多规格、单规格添加商品、提供对应的支付接口和前端商品详情接口供参考
  18. 订单管理:主要为商品订单的管理有发货、统计......
  19. 财务统计:平台订单等财务统计
  20. 其他功能:内置微信登录、小程序登录、短信登录、密码登录、微信企业到零钱、微信支付、支付宝支付、极光推送等API。

django-vue-lyadmin项目启动视频讲解

  1. 如何启动项目
  1. 项目功能点介绍
  1. 项目低代码开发介绍

lyadmin后端

1. 进入项目目录

2. 在 config.py 中配置数据库信息
	mysql数据库版本建议:8.0(django4.2版本要求mysql8.x以上)
	mysql数据库字符集:utf8mb4(mysql8.x排序规则选择:utf8mb4_0900_ai_ci、mysql5.7.x选择utf8mb4_general_ci)
    mysql数据库对应的表关于事务处理的确保是:innodb引擎(能回滚)

3. 设置数据库隔离级别(悲观锁、乐观锁)
    全局设置mysql数据库隔离级别为READ-COMMITTED(临时生效,重启就没了):SET GLOBAL tx_isolation='READ-COMMITTED';
    全局设置mysql数据库隔离级别为READ-COMMITTED(永久有效):修改配置文件my.cnf 的[mysqld]中增加 transaction-isolation=Read-Committed 
    当数据库当前会话的隔离级别:set tx_isolation='READ-COMMITTED';
    查询当前会话的数据库隔离级别:select @@tx_isolation;
    查询数据库mysql的隔离级别:select @@global.tx_isolation;
    
4. 安装依赖环境
	pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

5. 执行迁移命令(数据初始化):(此步骤可省略,直接导入sql脚本即可)
	python manage.py makemigrations
	python manage.py migrate

6. 初始化数据(数据初始化):(此步骤可省略,直接导入sql脚本即可)
	python manage.py init

7. 启动项目(初始账号:superadmin 密码:123456)
	python manage.py runserver 127.0.0.1:8000
    或使用 daphne (使用【终端服务】的需要使用此asgi方式部署来支持websocket):
    daphne -b 0.0.0.0 -p 8000 --proxy-headers application.asgi:application
    
    使用celery【计划任务】需要额外启动celery 和 beat(调度器)
    mac/linux:
    celery -A application worker -B -l info
    windows:(需要安装: pip install eventlet)
    celery -A application worker -P eventlet -l info
    celery -A application beat -l info

docker-compose 部署

1、先安装docker环境
2、pip install docker-compose 安装docker-compose
3、切换到项目根目录运行 docker-compose build 创建环境
4、docker-compose up -d 后台的方式启动docker环境
5、初始化django后端数据(第一次执行即可)
docker exec -it django-vue-lyadmin_django /bin/bash
python manage.py makemigrations 
python manage.py migrate
python manage.py init
exit
或者直接导入lyadmin_db.sql文件到数据库也可
6、其他docker-compose命令
# docker-compose 停止
docker-compose down
#  docker-compose 重启
docker-compose restart
#  docker-compose 启动时重新进行 build
docker-compose up -d --build
7、说明:默认docker端口mysql:3306\redis:6379\前端:8080\后台:8000 
如果端口冲突会造成启动docker失败情况

其他说明

1、使用本项目记得要更改application-->settings-->SECRET_KEY

可以运行python manage.py shell
from django.core.management import utils
utils.get_random_secret_key()
获取生成的新SECRET_KEY替换原来的老KEY

lyadmin前端

介绍

django-vue-lyadmin 是一套前后端分离的前端后台管理框架,是适配 django-vue-lyadmin 的 python django 后台管理项目的专属框架,基于原生 vue 开发,灵活自定义,可发挥空间大

软件架构

1、VUE3
2、elementplus
3、富文本编辑器采用 vue-quill-editor 和 tinymce 两种 可以自行选择

安装教程

cd frontend
npm install --registry=https://registry.npm.taobao.org

使用说明

调试开发直接运行:

npm start

打包

npm run build

打包后静态文件在 dist 目录中

线上部署注意事项

1、前端打包前修改frontend\src\api\url里面的线上服务器ip或域名
2、前端打包的dist里面的静态文件放到backend\frontend\目
3、运行python manage.py collectstatic收集静态文件到django

演示图

image-task02

image-task01

image-188

image-100

image-099

image-098

image-088

image-04

image-02

image-03

image-06

image-05

捐赠该项目

开源不易,可使用支付宝、微信扫下面二维码打赏支持。您的支持是我不断创作的动力!!!

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright (c) 2022 lybbn Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

django-vue-lyadmin是一套前后端分离的低代码快速后台开发平台(专业版带有代码生成和表单构建器)、支持简易商城模块、定时任务、webssh运维、系统监控、内置常用功能api接口如:登陆、短信、支付宝微信支付,RABC权限控制。后端采用Python Django DRF,登录使用simplejwt,前端采用vue3 elementplus,webpack\vite自由选择 展开 收起
Python
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/aaabced/django-vue-lyadmin.git
git@gitee.com:aaabced/django-vue-lyadmin.git
aaabced
django-vue-lyadmin
django-vue-lyadmin
master

搜索帮助