On Tue, Jan 19, 2010 at 11:30 AM, werner <[email protected]> wrote:

> Shouldn't make a difference, but when I changed back to "*", I had no link
> to Genres on the admin page.


I don't have an explanation for this, but would love to see more code about
it to try to answer what happened and why.


> What is best practice or recommended way to deal with lots of tables in the
> model?
>
> Should one keep each table in it's own .py file?
>
> If yes, how does one best deal with relations?
> - import the needed ones in each .py, or is there a nicer/cleaner way of
> doing this?
>

How you structure your tables will vary from project to project. A common
practice is to structure your tables the same way you would structure your
objects, though. After all, SQLAlchemy is an Object Relational Mapper, so
you're not specifying your database so much as your objects. So, you manage
your SA objects in the same way you manage your Python objects.

Hopefully, that will provide enough of an answer.
-- 
Michael J. Pedersen
My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171
         Yahoo/pedermj2002, MSN/[email protected]
--
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.

Reply via email to