Thanks Malcolmn, This issue was discussed already in this group. I saw that after posting the message. It had a fix.
http://groups.google.com/group/django-developers/browse_thread/thread/2a5d168c19c5774/0d8a0b5b878ab4ab?lnk=gst&q=inspectdb+error#0d8a0b5b878ab4ab And i am new to django. 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 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 <module> > > execute_manager(settings) > > File "c:\Python25\Lib\site-packages\django\core\management.py", line > > 1672, in > > execute_manager > > execute_from_command_line(action_mapping, argv) > > File "c:\Python25\Lib\site-packages\django\core\management.py", line > > 1574, in > > execute_from_command_line > > for line in action_mapping[action](): > > File "c:\Python25\Lib\site-packages\django\core\management.py", line > > 844, in i > > nspectdb > > relations = introspection_module.get_relations(cursor, table_name) > > File "c:\Python25\Lib\site-packages\django\db\backends > > \postgresql_psycopg2\int > > rospection.py", line 35, in get_relations > > relations[int(row[0][1:-1]) - 1] = (int(row[1][1:-1]) - 1, row[2]) > > TypeError: int() argument must be a string or a number, not 'list' > > > > Searched for this error in the django-developers groups. Somebody > > stated that they has fixed it. But couldn't find any fix yet. Can > > somebidy help me? > > What is the values of row[1] at the point the error is thrown? What part > of the database table is it trying to process at the time? > > Inspectdb handles common situations well and uncommon situations hardly > at all. So you might have an uncommon situation, but without a bit more > info, it's hard to tell. > > Regards, > Malcolm > > -- > Always try to be modest and be proud of it! > http://www.pointy-stick.com/blog/ > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---