views:

152

answers:

2

A site should be ready in 6 days. I am not allowed to use any framework such as Django. I am going to use:

Python modules

  1. HTMLGen to generate HTML code from class-based description
  2. SQLObject, relational tables onto Python's class model
  3. ?

Other

  1. Python 2.5
  2. A variant of the Postgres schema
  3. Super Smack for testing the schema

Which modules would you use in the limited time?

Plan

  1. To generate class model with SQLOject from the schema
  2. then generate HTML code from the gererated class model with HTMLGen. (changed to Jinja2)
  3. ?
+3  A: 

How about Jinja for templating? It will be much faster than working with autogenerated html. http://pypi.python.org/pypi/Jinja2/2.0

Santi
So I replace HTMLGen with Jinja2 if it is faster. +1 Ready examples?
Masi
+1  A: 

I think TurboGears started out as a project to collect best-of-breed packages together with some glue code to stitch them together. I think the latest incarnation uses Pylons, but perhaps only for the controller. At the very least, you can see the TurboGears Wikipedia entry to see what components they selected (see the subsections TurboGears 1.x components and TurboGears 2.x components), since they've obviously had some experience with this kind of thing. There's nothing "discussion" specific, but really you just want a templating library, a database library or ORM, a WSGI implementation with a router/controller and perhaps some AJAXy or other presentation widgets.

ars