[mod_python] Python Web Frameworks

Kevin J. Smith hockeysk8 at gmail.com
Fri Aug 25 15:24:55 EDT 2006


You have asked and answered your own question.  A framework usually provides
components that make up a "best practices" architecture of a web application
such as an MVC skeleton to work within, templating, and ORM.  You are
correct that most frameworks choose one particular implementation of each of
those components and if it is not to your liking then you should choose
another framework or roll-your-own (or join the development team of the
framework and code a plugin or extension.)  What frameworks do is encourage
code re-use.  Instead of rolling-your-own you get the plumbing for free.  If
you are going to choose to use straight-up mod_python I can guarantee that
after working on a project or two you will spend time slowly developing your
own framework so that for each request you will not have to cut and paste
mundane code that generically handles the request and does often repeated
tasks.

Cheers

On 8/24/06, Luis M. González <luismg at gmx.net> wrote:
>
>  I wonder if anyone can tell me what's exactly the benefit of using Django
> or TurgoGears
> compared to working with just plain mod_python.
>
> I've been playing with mod_python for awhile (with publisher, psp or both
> combined), and frankly speaking,
> it feels very powerful, easy and fun (once I got all the installation and
> configurations correctly done),
> and I don't know what else I could get in terms of ease of use and power
> from these frameworks.
>
> Do I really need a framework on top of mod_python?
> Is there anything easier or better with these frameworks than with the
> standard mp handlers?
>
> As far as I could see, these frameworks offer more solutions such as
> template languages, ORMs, etc...
> but I can also use them with plain mod_python, and I'm not forced to use
> whatever it comes bundled with
> the package. For example, I like very much Cheetah, which plays very well
> with the publisher handle.
> And although I don't feel much need for an ORM, I can use SqlObject or any
> other if I want.
>
> I see that there are other handy things like automatic admin generation,
> which looks cool,
> but is this a reason enough for adding yet another abstraction layer to my
> production setup?
> It seems to me that all these frameworks do is simply offering all the
> components bundled together.
>
> Aside from the admin tools or Ajax facilities, what do I really get from
> using a framework?
> Is there any detail I'm not aware of?
>
> Luis I wonder if anyone can tell me what's exactly the benefit of using
> Django or TurgoGears
> compared to working with just plain mod_python.
>
> I've been playing with mod_python for awhile (with publisher, psp or both
> combined), and frankly speaking,
> it feels very powerful, easy and fun (once I got all the installation and
> configurations correctly done),
> and I don't know what else I could get in terms of ease of use and power
> from these frameworks.
>
> Do I really need a framework on top of mod_python?
> Is there anything easier or better with these frameworks than with the
> standard mp handlers?
>
> As far as I could see, these frameworks offer more solutions such as
> template languages, ORMs, etc...
> but I can also use them with plain mod_python, and I'm not forced to use
> whatever it comes bundled with
> the package. For example, I like very much Cheetah, which plays very well
> with the publisher handle.
> And although I don't feel much need for an ORM, I can use SqlObject or any
> other if I want.
>
> I see that there are other handy things like automatic admin generation,
> which looks cool,
> but is this a reason enough for adding yet another abstraction layer to my
> production setup?
> It seems to me that all these frameworks do is simply offering all the
> components bundled together.
>
> Is there any detail I'm not aware of?
>
> Luis
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060825/fdcd3c77/attachment.html


More information about the Mod_python mailing list