Re: one model per file

2007-07-12 Thread Lic. José M. Rodriguez Bacallao
Benjamin is right, I forgot that detail!! On 7/12/07, Benjamin Slavin <[EMAIL PROTECTED]> wrote: > > On 7/12/07, Lic. Jos� M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote: > > the idea here is like Jeremy say, make django think that it has a module > or > > package named models, here, in

Re: one model per file

2007-07-12 Thread Lic. José M. Rodriguez Bacallao
Benjamin is right, I forgot that detail!! On 7/12/07, Benjamin Slavin <[EMAIL PROTECTED]> wrote: > > On 7/12/07, Lic. Jos� M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote: > > the idea here is like Jeremy say, make django think that it has a module > or > > package named models, here, in

Re: one model per file

2007-07-12 Thread Benjamin Slavin
On 7/12/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote: > the idea here is like Jeremy say, make django think that it has a module or > package named models, here, in __init__.py file I'm telling that the > directory models is a package and for all your models to be accessible to >

Re: one model per file

2007-07-12 Thread Lic. José M. Rodriguez Bacallao
right now I'm working with this layout, multiple files with models definitions, look an example: project dir: |___app dir |__models (this is a package) |___ __init__.py (here I import all my models: from fileX import modelX...) |___ fileX.py

Re: one model per file

2007-07-12 Thread Jeremy Dunck
On 7/12/07, LaundroMat <[EMAIL PROTECTED]> wrote: ... > I don't exactly see what you'd want to do this though. It's a lot > easier to stick to the standard. Perhaps he's using a source control system with pessimistic locking. So, yeah, you can do this: app_dir/ models.py -> "from sub_model

Re: one model per file

2007-07-12 Thread LaundroMat
On 12 Jul, 10:21, james_027 <[EMAIL PROTECTED]> wrote: > Hi, > > I am following the official tutorial of django, and found out that > several model are define in a single file. I just wonder if we could > have one model per file? or can be as flexible as X no of mod

one model per file

2007-07-12 Thread james_027
Hi, I am following the official tutorial of django, and found out that several model are define in a single file. I just wonder if we could have one model per file? or can be as flexible as X no of models in file A and Y no of models in file B and so on. If this is allowed, how to we name