6

I am looking for a Python web framework which will allow me to rapidly build a CRUD application with automatic AJAX support.

The framework should be able to generate a nice table which is sortable and filterable, which works via AJAX and without JS support at all as well.

I have looked at TurboGears2 and it seems promising, is there any other framework that can do the job for me?

miku
  • 161,705
  • 45
  • 286
  • 300
denysonique
  • 14,089
  • 6
  • 34
  • 39

2 Answers2

6

Most of the modern frameworks, like TG, Django or Flask support CRUD-style applications. But none of those are that much abstract, that you can give them a model, and there you have your ajaxy db manipulation templates and validations.

Django has django-admin and a great form builder and helper module; Flask can work with WTForms easily. Javascript is just as usable with any of the above frameworks, so that with a little recherche in the jQuery plugin area, you might be able to quickly build your application.

miku
  • 161,705
  • 45
  • 286
  • 300
  • I am familiar with Django-admin, but it is only for simple admin stuff, I don't want to spend time hacking Django-admin, that is not its purpose, it would be much easier to write the app using django-filter. And also I do not want to hand code JS everytime if there are other frameworks which can do this simple task for me. – denysonique Jan 25 '11 at 04:40
6

You might check out web2py. Very easy CRUD, and great Ajax support (see also, web2py components). web2py's plugin_wiki also includes widgets for CRUD and jqGrid.

There's also a new grid plugin under development called powerTable, which is a web2py wrapper for the jQuery DataTables plugin.

If you have questions, the web2py community will be happy to help you out.

Anthony
  • 25,201
  • 3
  • 23
  • 54
  • thanks, I will maybe have a look at web2py, I am currently checking TurboGears2 with Sprox which can generate all the CRUD stuff with AJAX. – denysonique Jan 25 '11 at 04:42
  • 1
    powerTable looks really impressive – denysonique Jan 25 '11 at 04:46
  • I don't know much about TurboGears, but note that they have decided to merge with the Pylons Project (I think the plan is to continue to maintain TurboGears, but also to focus on adding "full stack" tools on top of the new Pyramid framework). See http://groups.google.com/group/turbogears/browse_frm/thread/a6ef71ebea4ebcb0. – Anthony Jan 25 '11 at 04:58
  • TuboGears is a meta framework it is built on top of other projects, yes it uses Pylons, TG1 used CherryPy – denysonique Jan 25 '11 at 22:18
  • @denysonique, yes TG2 is built on top of Pylons. What I was saying is that the TG team is planning to merge with the newly formed Pylons Project and start building a new set of full stack tools on top of the new Pyramid framework (which is a merger of Pylons and repoze.bfg). I assume they will maintain TG2 for some time, but presumably it will ultimately be superceded by whatever they end up building on top of Pyramid. – Anthony Jan 26 '11 at 16:46