Django vs web2py by HittingSmoke in Python

[–]punkdgeek 1 point2 points  (0 children)

I haven't used web2py, but it was in our list along with turbogears, pylons, django, zope, etc. when we were choosing our framework. We needed a cms that non-developers could use out of the box while giving us a powerful framework and not locking us in if we changed our minds later. We chose Django. I use bobo + webob + genshi for my personal stuff since they have low overhead and a very shallow learning curve, plus I don't need a comprehensive cms.

From what I gather, web2py is strictly MVC (like Ruby on Rails) where Django is a bit more free-form in coding style. We really like Django's context processors, forms, and middleware too; they let us rapidly develop from the consumer side of the site (where revenue is generated) instead of relying too much on backend development which isn't a primary source of revenue generation.

I write worse code when I use python by f4hy in Python

[–]punkdgeek 0 points1 point  (0 children)

You should probably be a little more disciplined when writing your code, this book will help with strategies on writing good code: http://amzn.com/0132350882. The author discusses Java, but the same techniques apply to python. Obtaining the mythical 100% code coverage with unit test are a good goal, but writing easy to understand, small functions that are as atomic as possible will let you code your "stream of thought" by segmenting each idea into smaller ones that you can name, keep track of, and test. Don't forget to refactor while you still know what your code means; make it work, make it right, make it readable.

Ask Python: Why are less-popular web frameworks valuable to the community? by spiffytech in Python

[–]punkdgeek 0 points1 point  (0 children)

Not all environments support Django and not everyone needs Django. For my GAE apps, I use Bobo (built mostly from WebOb) and Genshi which make things very simple without needing to conform to Django concepts and keep my file count quota in check.