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 something like: name = models.CharField(max_length=200) But I don't want to "touch" the model, because are 70 classes, and can be more: a group is working on the model, another is working on "desktop view" and another is in "web view", one model many views. Thanks again, cesar. On Sun, Dec 14, 2008 at 1:53 PM, Alex Koshelev <daeva...@gmail.com> wrote: > 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 <cubiertasnue...@gmail.com> 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 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 >> documentation but always start a new model and define the classes like >> this: >> ... >> class Poll(models.Model): >> question = models.CharField(max_length=200) >> ... >> >> I wondering if is possible define this things (attributes of the >> classes, everything related with the DB , etc ) in another place than >> the model. >> If this information is in the documentation, I'm sorry, i couldn't find >> it. >> >> Thanks, >> cesar. >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---