[omaha] best python web framwork

Mike Hostetler mike at hostetlerhome.com
Thu Jul 14 22:02:42 CEST 2011


On Thu, 2011-07-14 at 12:15 -0500, Jeff Hinrichs wrote:
> On Thu, Jul 14, 2011 at 11:35 AM, Matthew Nuzum <newz at bearfruit.org> wrote:
> 
> > On Thu, Jul 14, 2011 at 11:16 AM, Jay Hannah <jay.hannah at iinteractive.com
> > >wrote:
> >
> > > On Jul 13, 2011, at 8:23 PM, Matthew Nuzum wrote:
> > > > django isn't really a content management system and mod_python isn't a
> > > > framework at all. mod_python embeds Python in the web server and is
> > > > generally a bad idea currently. Instead use mod_wsgi (pronounced "mod
> > > > whiskey") if you have the option. (or fastcgi if you like to fiddle)
> > >
> > > Have you done much with WSGI? Nick and I were looking for a Python guy
> > for
> > > our meeting we just had on Tuesday. He presented Ruby's Rack and I
> > presented
> > > Perl's Plack.   :)
> > >
> > >
> > I've deployed numerous apps with it but I've not stretched it's limits. I
> > know it has some cool features.
> >
> > I will say that an app I'm deploying new was having some poor performance
> > so
> > asked an Apache hacker friend for some times. We removed a lot of
> > unnecessary apache modules and switched to the worker mpm and boosted the
> > performance on my baby VPS from about 35 req/sec to 59 req/sec.
> >
> > After I was done these are the only mods I have enabled on my Ubuntu 10.04
> > server:
> >
> > alias
> > authn_file
> > authz_host
> > cgid
> > deflate
> > env
> > mime
> > reqtimeout
> > rewrite
> > setenvif
> > ssl
> > wsgi
> >
> > He told me that if I'm not using SSL that the event mpm is even faster than
> > the worker mpm. I didn't try it out because I do need SSL.
> >
> > --
> > Matthew Nuzum
> > newz2000 on freenode, skype, linkedin and twitter
> >
> > ♫ You're never fully dressed without a smile! ♫
> > _______________________________________________
> > Omaha Python Users Group mailing list
> > Omaha at python.org
> > http://mail.python.org/mailman/listinfo/omaha
> > http://www.OmahaPython.org
> >
> 
> I agree with the things said previously.  I've used Twisted, mod_python,
> vampire, CherryPy, TurboGears (pre-pyramid -- back when CherryPy was bundled
> with) and Django 1.x -> 1.3
> 
> Currently, all that I do is under mod_wsgi and Django 1.x although I do have
> some legacy apps still running mod_python/vampire until I get time to move
> the to Django.
> 
> Out of all that I have used, I would recommend Django -- the reason is
> documentation.  None of the others mentioned hold a candle to the docs and
> resources available for Django.  The second reason, is testing -- although
> most popular Django tutorials don't go into testing there is documentation
> both online and in the code.   Now I concede that you can find cases where
> Django is not a good fit, and that is true, however, these cases are not
> better suited by another platform they usually revolve around specific needs
> that make writing custom code a better trade-off than using a platform.
> 
> It is easy to get started with Django on a solo box and the move from
> HelloWorld to more non-trivial apps is not a bone breaker.
> 

Fascinating discussion . .. 

I'm just finishing up a Django/Satchmo project (Satchmo->a
Django-powered ecommerce engine) and going to start up a new project
real soon.  Thinking of some of the pain I just had, I'm wondering if
anything would be better suited (I will recognize that most of the pain
I went through was Satchmo's doing, and the next project will not be
ecommerce).

I think Django's killer features are it's admin interface and it's
documentation.  A secondary feature is the amount of high-quality
plugins for it -- Haystack for search, Memcache, etc.  Even though I
just complained about Satchmo, it is pretty good when you want an
web-store alongside a blog, CMS, or other webapp and have them
integrated.  

I just looked at Flask and it seem interesting, though it would be hard
to go back to making my own database schemas.  But simple and light --
never a bad thing.

Anyone have current experience on TurboGears2?  That seems interesting
as well.  SQLObject is wonderful (I used it pre-TurboGears).

> Best,
> 
> Jeff
> 
> p.s. I didn't respond to the wsgi invite because I'm not really a "wsgi"
> guy.  It is the plumbing that I use but at a level that has me thinking
> about it as much as I think about the 7 layer OS networking model :)
> _______________________________________________
> Omaha Python Users Group mailing list
> Omaha at python.org
> http://mail.python.org/mailman/listinfo/omaha
> http://www.OmahaPython.org




More information about the Omaha mailing list