4 ms·
Out of curiosity what framework do you use in Python?
by whatthecrep 9y ago
Out of curiosity what framework do you use in Python?
- bigmanwalter 9y agoI use web2py. I find it strikes a great balance between having an elegant API and getting shit done. And it generates Bootstrap compatible forms out of the box :)
- whatthecrep 9y agoThanks, I'll definitely take a look at it. How does it compare to Django and Flask?
- bigmanwalter 9y agoI found that Django makes too many assumptions for my taste, and you really need to fight it if you don't like them. You can get around the bad design decisions by using plugins, but they're not all compatible with each other and I found it got messy. Flask on the other hand, comes with too few features out of the box. Getting an application with user auth, file uploads, an ORM and form generation can take over a week to set up perfectly. Web2py was created by a professor at DePaul University who got tired of Django after teaching it in a web development course. He built Web2py to have feature parity, but, IMHO, he has a much better aesthetic when it comes to API design. So rather than a design-by-comittee behemoth like Django, you get a succinct and intuitive API designed by a great programmer. Beyond that, it has a handful of features that I find unmatched, notably its data grids and bootstrap compatibility by default. I really love the bootstrap compatibility because it allows me to grab a theme off wrapbootstrap.com and everything just works without any tweaking. For small projects it works out perfectly :) It also has a very active Google Group where the framework's author frequently helps people out! The only thing I miss is the Werkzeug debugger that Flask comes with by default, and which can bet set up to run on Django. That thing is beautiful. But Web2py's debugger is good enough, and Web2py surpasses the competition in every other way. To really grok how amazing web2py is, I recommend working through the tutorial. It's not too long and it shows off Web2py quite nicely. A lot of what makes web2py so great are subtle design decisions. It fixes almost all the problems I had with the other frameworks and introduces practically none of its own.
- whatthecrep 9y agoThank for the answer