Hi, models.Model is django.db.models.base.Model and is defined in django/ db/models/base.py.
Have a look at django/db/__init__.py (in your local Django installation or https://code.djangoproject.com/browser/django/tags/releases/1.3) and http://docs.python.org/tutorial/modules.html. Regards, Andrew On Aug 6, 11:38 am, Hayyan Rafiq <hayya...@hotmail.com> wrote: > are you referring to the models.py which is present in every app created by > python manage.py startapp books ?? > > # Create your models here. > from django.db import models > > class Publisher(models.Model): > name = models.CharField(max_length=30) > address = models.CharField(max_length=50) > city = models.CharField(max_length=60) > state_province = models.CharField(max_length=30) > country = models.CharField(max_length=50) > website = models.URLField() > > class Author(models.Model): > first_name = models.CharField(max_length=30) > last_name = models.CharField(max_length=40) > email = models.EmailField() > > class Book(models.Model): > title = models.CharField(max_length=100) > authors = models.ManyToManyField(Author) > publisher = models.ForeignKey(Publisher) > publication_date = models.DateField() > > "I meant Models is defined inside models.py. ??" .. still not clear > > Date: Fri, 5 Aug 2011 21:33:26 -0400 > Subject: Re: RE: Question about imports..Python Dejango and Models > From: sh...@milochik.com > To: django-users@googlegroups.com > > Sorry, typo. I meant Models is defined inside models.py. > > -- > > 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 > athttp://groups.google.com/group/django-users?hl=en. -- 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.