Re: Reusing a python model

2008-12-14 Thread JULIO Cayo
Thank you so much, and yes, i'm not a python developer. I recently joined to the group. Thanks again for your reply, now i understand a bit more about the framework. cesar. On Sun, Dec 14, 2008 at 7:37 PM, bruno desthuilliers wrote: > > On 14 déc, 17:58, "JULIO Cayo" wrote: >> Thanks Alex for

Re: Reusing a python model

2008-12-14 Thread bruno desthuilliers
On 14 déc, 17:58, "JULIO Cayo" wrote: > Thanks Alex for your fast reply! Maybe I don't understand you, but if > i have a model (70 classes) in "base python" i don't want to re-write > entire model in django style. You don't have use Django's models.Model class to use Django. But obviously you ne

Re: Reusing a python model

2008-12-14 Thread JULIO Cayo
Thanks Alex for your fast reply! Maybe I don't understand you, but if i have a model (70 classes) in "base python" i don't want to re-write entire model in django style. For example, I have a class "User" with age, name, lastname , etc... In my model is: class User: name = " " And django need s

Re: Reusing a python model

2008-12-14 Thread Alex Koshelev
You don't need to define it else where.Just write a django model once and use it any where in you project. On Sun, Dec 14, 2008 at 18:40, JULIO Cayo wrote: > > Hi, I want to start with django framework. I've never used it. ( I'm > sorry, I'm learning english) > > My question is: I have an appli

Reusing a python model

2008-12-14 Thread JULIO Cayo
Hi, I want to start with django framework. I've never used it. ( I'm sorry, I'm learning english) My question is: I have an application in python based on the pattern mvc, so I want to take the model (the classes) of the application and "plug" into a django proyect. I read in the tutorials and do