OK, here are a piece of backgrounds: OS: Windows XP The version of Django is 0.95.1 (stable version; not svn), the version of PostgreSQL is 8.2. I use psycopg2-2.0.6b1.win32-py2.5-pg8.2.1- release for the databasebinding.
The error comes from Django: Following steps (the applicationname is tm): - validate -> 0 errors found - syncdb -> creating tables and installing some initial data; all works fine - reset -> error: ===== Error: tm couldn't be installed. Possible reasons: * The database isn't running or isn't configured correctly. * At least one of the database tables already exists. * The SQL was invalid. Hint: Look at the output of 'django-admin.py sqlreset tm'. That's the SQL this command wasn't able to run. The full error: constraint "team_id_referencing_tm_team_team_id" does not exist ===== - sqlreset: (abstract) ===== BEGIN; ... ALTER TABLE "tm_player" DROP CONSTRAINT "team_id_referencing_tm_team_team_id"; ... "; ===== - a look in the databaseinterfcae (pgAdmin): the name of the constraint in table tm_player is: team_id_referencing_tm_team_team_id_1 I don't know, what can I do. For every changes in the db-model, I have delete all tables by hand and but now I can use syncdb. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---