{"id":13783347,"url":"https://github.com/git-men/lightning","last_synced_at":"2025-05-11T18:31:43.366Z","repository":{"id":37303198,"uuid":"317185087","full_name":"git-men/lightning","owner":"git-men","description":"A Django based no code Admin and low code develop framework","archived":false,"fork":false,"pushed_at":"2024-12-06T07:31:08.000Z","size":41233,"stargazers_count":173,"open_issues_count":6,"forks_count":26,"subscribers_count":10,"default_branch":"develop","last_synced_at":"2025-04-09T05:18:52.746Z","etag":null,"topics":["admin","django","lowcode","nocode","python"],"latest_commit_sha":null,"homepage":"https://git-men.github.io/lightning-doc/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/git-men.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-30T10:16:45.000Z","updated_at":"2025-03-20T03:33:21.000Z","dependencies_parsed_at":"2024-07-25T05:30:14.955Z","dependency_job_id":"5cf96b03-cc54-402c-9fb5-e47da33e9f38","html_url":"https://github.com/git-men/lightning","commit_stats":{"total_commits":930,"total_committers":13,"mean_commits":71.53846153846153,"dds":0.6806451612903226,"last_synced_commit":"f5dcc14fb7cd856ecf9a4922784fc4a7b041e519"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-men%2Flightning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-men%2Flightning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-men%2Flightning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-men%2Flightning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/git-men","download_url":"https://codeload.github.com/git-men/lightning/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253613343,"owners_count":21936259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","django","lowcode","nocode","python"],"created_at":"2024-08-03T19:00:19.440Z","updated_at":"2025-05-11T18:31:42.202Z","avatar_url":"https://github.com/git-men.png","language":"Python","readme":"\n\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n\n\n  \u003ch3 align=\"center\"\u003eLightning -- 基于Django的无代码Admin以及低代码Web开发框架\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n\n    \n  \u003c/p\u003e\n\u003c/p\u003e\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## 关于项目\n\nlightning 是闪电数据管理社区开源版，是一个无代码的Admin和低代码Web开发框架, 适用于Django开发者。\n    \n你只需要编写业务模型代码，lightning 一键为你生成Admin，通过在线页面配置面板，可实时调整\bAdmin页面功能，无需重新部署。\n\nlightning 还是一个适用于web的低代码开发框架, 通过它可以在线配置API来减免大量的接口开发工作，可以在线配置图表实现数据可视化。\n\n\n### 技术栈\n\nlightning是由一系列的Django apps组件，前端是SPA，己打包到lightning app里面。\n\n本项目上中使用了以下技术：\n\n* [Django](https://www.djangoproject.com/)\n* [React](https://reactjs.org/)\n* [Ant Design](https://ant.design/)\n\n\n\n\u003c!-- GETTING STARTED --\u003e\n## 快速开始\n\n在开始之前，需要先学习 [Python](https://www.python.org/) 与 [Django](https://www.djangoproject.com/)\n\n### 准备\n\n* **Python** 最低需要 3.6 版本\n* **Django** 需要 2.2.9 版本，Django 3.x 未完整测试。\n\n### 安装\n\n安装lightning 依赖\n\n```sh\npip install django-lightning\n```\n\n### 配置\n\n1. 在 [Django settings](https://docs.djangoproject.com/en/2.2/ref/settings/) 中导入`lightning.settings`下的配置\n\n```python\nfrom lightning.settings import *\n```\n\n2. 在 [Django settings](https://docs.djangoproject.com/en/2.2/ref/settings/) 的`INSTALLED_APPS`中添加`lightning.APPS`\n\n```python\nimport lightning\nINSTALLED_APPS += lightning.APPS\n```\n\n3. 配置根路由，在项目的urls.py中，把`lightning.urls`的路由添加到最后一行。\n```python\nfrom django.urls import path, include\n\nurlpatterns = [\n    # ...\n    path('', include('lightning.urls')),  # 添加到最后一行\n]\n```\n\n### Migrate\n\n需要migrate一次，为lightning就用创建数据表。\n\n```sh\n./manage.py migrate\n```\n\n### 生成管理界面\n\n使用`./manage.py light \u003capp_label\u003e` 生成指定应用的页面配置内容\n```sh\n./manage.py light my_app\n```\n### 运行\n\n使用`./manage.py runserver` 运行Django项目\n```sh\n./manage.py runserver\n```\n此时，通过浏览器打开 http://localhost:8000/lightning 即可进入管理界面，使用管理员帐号登录即可。若未有帐号，使用`./manage.py createsuperuser` 命令创建一个。\n\n## 了解更多\n\n请查阅[参考文档](https://gitmen.gitee.io/lightning-doc/)以及[示例](https://gitmen.gitee.io/lightning-doc/docs/crm)\n\n\u003c!-- CONTRIBUTING --\u003e\n## 欢迎参与项目建设\n\n我们本着回馈社区的初心把团队多年的积累开源，同时也希望社区中有志之士能参与到项目中一起完善她。你可以通过写代码的方式来参与，也可以通过测试提Bug、编写文档、文档国际化等形式参与进来。\n\n\u003c!-- LICENSE --\u003e\n## 授权协议\n\n本开源项目基于MIT协议发布，更多信息请查看 `LICENSE` 。\n\n\u003c!-- CONTACT --\u003e\n## 联系人\n\nJeff Kit，项目负责人\n- @jeff_kit(微信、推特)\n- jeff@gitmen.com\n\n","funding_links":[],"categories":["全栈平台"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-men%2Flightning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgit-men%2Flightning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-men%2Flightning/lists"}