Initial Value for AutoField

2008-02-14 Thread Sairam Krishnamurthy
Hi, I need to specify an initial value for for an AutoField. Is there a way of doing it? Or can somebody refer me how to find the fields of classes like AutoField? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Django Import "mysite" Problem

2008-02-13 Thread Sairam Krishnamurthy
Hi, I created the tables in the database using models.py. It was successful. I tried to write a script to populate the database. My project name is "myproject". I have an app "test" inside that project. When i tried to import a class "Users" from models.py("from myproject.test.models import Users

Re: Two fields foreign key of same table

2008-02-13 Thread Sairam Krishnamurthy
Thanks Pete. On Feb 13, 2008 4:07 PM, Pete Crosier <[EMAIL PROTECTED]> wrote: > > Read the message a little closer, it tells you what to do.. each > ForeignKey field needs a related_name to distinguish it from the > other. > > On Feb 13, 10:33 am, "Sairam Kri

Re: InspectDB showing up error

2008-02-13 Thread Sairam Krishnamurthy
So i cant answer your question at this point. Thanks. On Feb 13, 2008 3:42 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Wed, 2008-02-13 at 11:51 +0530, Sairam Krishnamurthy wrote: > > Hi, > > > > I created a postgres db and tried to create model.py file

Two fields foreign key of same table

2008-02-13 Thread Sairam Krishnamurthy
Hi, I have a table structure like this. class Componentdependencies(models.Model): componentVersionID = models.ForeignKey(Componentversions) depComponentVersionID = models.ForeignKey(Componentversions) useFlagID = models.ForeignKey(Useflags, db_column='useFlagID') class Meta:

InspectDB showing up error

2008-02-12 Thread Sairam Krishnamurthy
Hi, I created a postgres db and tried to create model.py file using inspectdb. I showed me the following error. from django.db import models class AuthMessage(models.Model): Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "c:\Python25\Lib