Hi there, I've decided to drop my old 0.91 database and rebuild, rather than try to upgrade it. So, in my dev environment I've dropped the database, but now when I try to 'syncdb' I get the following validation error.
Error: Couldn't install apps, because there were errors in one or more models: mydarksecret.accusation: Accessor for field 'player' clashes with related field 'Player.accusation_set'. Add a related_name argument to the definition for 'player'. mydarksecret.accusation: Accessor for field 'accusedPlayer' clashes with related field 'Player.accusation_set'. Add a related_name a rgument to the definition for 'accusedPlayer'. This strikes me as wierd since there are many other tables that have similar relationships, but it only seems to complain about 'accusation'. See some sample tables below. Also, I can't seem to get the "django infrastructure" created. syncdb doesn't want to create them ... is there another manage.py command I should be using to get things like the session table created? Any ideas? Thx, Sandy ---- (partial) MODEL ---- class Player(models.Model): user = models.ForeignKey(User, null = True) game = models.ForeignKey(Game) character = models.ForeignKey(GameElement) joinedOn = models.DateTimeField(auto_now_add = True) class Message(models.Model): gameElement = models.ForeignKey(GameElement) player = models.ForeignKey(Player) emotion = models.IntegerField() dateTime = models.DateTimeField(auto_now_add = True) subject = models.CharField(maxlength = 100) text = models.CharField(maxlength = 1024) class ReadMessage(models.Model): gameElement = models.ForeignKey(GameElement) player = models.ForeignKey(Player) dateTime = models.DateTimeField(auto_now_add = True) class Accusation(models.Model): game = models.ForeignKey(Game) player = models.ForeignKey(Player) accusedPlayer = models.ForeignKey(Player) isCommitted = models.BooleanField() --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---