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
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
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
>
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
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
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
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
7 matches
Mail list logo