什么是一个好的轻量级Python MVC框架? [英] What's a good lightweight Python MVC framework?

查看:117
本文介绍了什么是一个好的轻量级Python MVC框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道那里有很多Python框架。你们能否指引我朝着正确的方向发展?我主要关心的是简单性,我不需要太多额外的功能。
以下是我想要(或不想)的其他一些东西:


  • 不关心对于ORM,只是希望它能与MySQL一起工作

  • 具有可配置的路由

  • 支持布局

>

解决方案

web2py strong> 为265Kbytes的源代码和1.2MB的全包(与Django 4.6MB相比)。然而web2py将完成你所需要的一切(管理会话,cookies,请求,响应,缓存,国际化,错误/票据,GAE,SQLite,MSSQL,MySQL,Postgres,Oracle,FireBird等的数据库抽象)。它不需要安装 - 只需解压并点击它即可 - 您可以在浏览器中进行开发。



Web2py包含路线和反向路线。



Web2py具有分层模板系统,这意味着视图可以扩展可以扩展另一个布局的布局,等等视图也可以包含其他视图。

I know there are a ton of Python frameworks out there. Can you guys point me in the right direction? My primary concern is simplicity, I don't need a lot of extraneous features. Here are a couple of other things that I'd want (or don't want):

  • don't care for ORM, just want it to work with MySQL
  • has configurable routes
  • has support for layouts

解决方案

web2py is 265Kbytes of source code and 1.2MB all inclusive (compare with 4.6MB of Django). Yet web2py will do everything you need (manage session, cookies, request, response, cache, internationalization, errors/tickets, database abstraction for GAE, SQLite, MSSQL, MySQL, Postgres, Oracle, FireBird, etc.) It does not need installation - just unzip and click on it - and you can do development in your browser.

Web2py has both routes and reverse routes.

Web2py has a hierarchical template systems which means a view can extend a layout which can extend another layout, etc. views can also include other views.

这篇关于什么是一个好的轻量级Python MVC框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆