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?

Thanks,
Sairam

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

Reply via email to