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
-~----------~----~----~----~------~----~------~--~---

Reply via email to