> Am 14.04.2011 um 02:00 schrieb pythy: > > >I'm leaning toward Jython dev in eclipse. My db of choice is > >PostgreSQL. Looking for html templates that are as easy to use as php. > > > >I understand that TG is not entirely compatible with Jython, but that > >there are some workarounds. > > > >The book mentions the 'Hibernate' ORM, which I'm also leaning towards. > >But, the only thing I'm really married to at this point is PgSQL as > >backend, and some flavor of Python. > >
Diez is right, trying to mix in Jython without a particular need will get in your way. My first web programming experience was in Java (J2EE?) with the Spring framework and the Hibernate ORM. Since then I've moved to pure-python and TurboGears 2.1 and its been much for the better. In python-land, the best of breed ORM is sqlalchemy: http://www.sqlalchemy.org/ It blows my mind (in the good way) at least once a week. With sqlalchemy (and most ORMs) your DB implementation (Postgre, MySQL, sqlite, etc..) is actually hidden from you. My sqlalchemy code for my projects can talk to just about any DB backend I point it at. This is cool because you can get an idea, develop rapidly on a sqlite database without worrying about setting up a production DB, and only later when the idea is proven worthy redirect your app at a more solid database implementation. As for templates, there are more python templating languages than I can list. I use `mako` templates because they feel less restrictive to write. Mostly preference here. Speed is an issue, too: http://stackoverflow.com/questions/1324238/what-is-the-fastest-template-system-for-python -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

