Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目Illumine推荐(PythonWEB框架) #1669

Closed
streetartist opened this issue Mar 13, 2021 · 1 comment
Closed

项目Illumine推荐(PythonWEB框架) #1669

streetartist opened this issue Mar 13, 2021 · 1 comment

Comments

@streetartist
Copy link

项目推荐

  • 项目地址:https://github.com/streetartist/Illumine

  • 类别:Python

  • 项目后续更新计划:大约每周更新一次(因为是初中生)

  • 项目描述:

    • 必写:Python的一个网页框架,支持像Wordpress那样的扩展
    • 可选:网站编写
    • 描述长度(不包含示例代码): 目标是让用户在不修改内核代码的情况下,通过编写插件电池主题,来编写网站
  • 推荐理由:
    1.电池是事先编写好的网页框架(框架中的框架),加快编写速度
    2.支持多个框架:Flask、Fastapi

  • 示例代码:

# from battery.blog.admin import isadmin
from battery.blog.db import Post

class Main:
    def __init__(self, render):
        self.render = render
        self.name ="new"
    def main(self,session,request=None,arg=None,plugin=None):
        # @isadmin(session)
        def this():
            if request == None:
                return self.render("new.html",welcome = True,post=Post.select())
            else:
                title = request.form.get("title")
                text = request.form.get("text")
                time = request.form.get("time")
                author = request.form.get("author")
                tag = request.form.get("tag")

                p = Post(tag=tag, time=time, author = author, content = text,title = title)
                p.save()
                return "创建成功!"
        
        return this()
  • 截图:
    image
    image
    image
    image
@streetartist streetartist changed the title 项目Illumine推荐 项目Illumine推荐(PythonWEB框架) Mar 13, 2021
@521xueweihan
Copy link
Owner

非常感谢您推荐项目。

该项目暂不能收录到 HelloGitHub 月刊中,HelloGitHub 推荐项目审核标准 #271
期待持续完善该项目,后续推荐更多的项目。

再次感谢您对 HelloGitHub 的支持 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants