When running "python manage.py inspectdb" against the following postgresql table:
# \d auth_message Table "public.auth_message" Column | Type | Modifiers ---------+---------+----------------------------------------------------------- id | integer | not null default nextval('auth_message_id_seq'::regclass) user_id | integer | not null message | text | not null Indexes: "auth_message_pkey" PRIMARY KEY, btree (id) "auth_message_user_id" btree (user_id) Foreign-key constraints: "user_id_refs_id_650f49a6" FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED I get the following error from django: class AuthMessage(models.Model): Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "/usr/lib/python2.5/site-packages/django/core/management.py", line 1742, in execute_manager execute_from_command_line(action_mapping, argv) File "/usr/lib/python2.5/site-packages/django/core/management.py", line 1642, in execute_from_command_line for line in action_mapping[action](): File "/usr/lib/python2.5/site-packages/django/core/management.py", line 890, in inspectdb relations = introspection_module.get_relations(cursor, table_name) File "/usr/lib/python2.5/site-packages/django/db/backends/postgresql_psycopg2/introspection.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' ie. Django doesn't know how to inspect its own tables... Cheers -- Peter Nixon http://peternixon.net/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---