Thanks, and I took this one step further. I have a test application
directory, and ran the

 python manage.py inspectdb

into a special models.py file that I'll use for future reference.

On Nov 10, 1:30 pm, Simone Dalla <simoda...@gmail.com> wrote:
> 2010/11/10 Sandip Bhattacharya <sand...@foss-community.com>
>
>
>
> > On Wed, Nov 10, 2010 at 09:23:55AM -0800, octopusgrabbus wrote:
> > > # Create your models here.
> > > class ept_inv(models.Model):
> > >     part_num = models.CharField(max_length=20)
> > >     ept_type = models.SmallIntegerField
> > >     inv_id = models.IntegerField
> > >     load_date = models.DateField
>
> > Call the model classes. Dont return their references.
>
> >  class ept_inv(models.Model):
> >     part_num = models.CharField(max_length=20)
> >     ept_type = models.SmallIntegerField()
> >     inv_id = models.IntegerField()
> >      load_date = models.DateField()
>
> > - Sandi
>
> python manage.py inspectdb > models.py
>
> http://docs.djangoproject.com/en/1.2/howto/legacy-databases/
>
> --
> Simo
>
> - Registered Linux User #395060
>
> - Software is like sex, it is better when it is free  --> Linus B. Torvalds

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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