On Aug 11, 2005, at 3:25 PM, jhernandez wrote:
One of the QOTW of Dr. Dobb's Python-URL! - weekly Python news and
links (Jun 22) says:
"It happens that old Java programmers make one module per class
when they
start using Python. That's more or less equivalent of never using more
than 8.3 characters in filenames in modern operating systems, or to
make
a detour on your way to work because there used to be a fence
blocking the
shortest way a long time ago." - Magnus Lycka
Ha!
On 8/11/05, ludo <[EMAIL PROTECTED]> wrote:
Is there a standard way to have multiple files (eg one per class)
inside an app's model/ folder?
I seem to end up with a different app prefix for each file no matter
what I try, eg mysite/apps/myapp/boxes.py looks for a boxes_boxes
table
instead of myapp_boxes.
Think of each file as an application, and each class in the file as a
module of that application. That is, if you've got a "blogs.py",
it'll have Blog, BlogEntry, BlogrollEntry, and such.
Jacob