Indeed, I am such an idiot at times.
Once again your help is very much appreciated.
Many thanks
Duncan
On Feb 26, 1:06 am, "Chase" <[EMAIL PROTECTED]> wrote:
> I don't know exactly what it's referring to, but check to make sure
> that any True's in your model (I don't see any in the one you post
I don't know exactly what it's referring to, but check to make sure
that any True's in your model (I don't see any in the one you posted)
are spelled "True" and not "TRUE". Python is case sensitive.
> $ python2.4 manage.py syncdb
> Error: Couldn't install apps, because there were errors in one o
Sorry to be a pain in the ass, but I did as you stated with that and
now i get a different error:
$ python2.4 manage.py syncdb
Error: Couldn't install apps, because there were errors in one or more
models:
htafc.teams: name 'TRUE' is not defined
What is this referring too please?
On Feb 26, 12
Thank you Honza and Chase, you have both been extremely helpful.
Many thanks,
Duncan
On Feb 26, 12:09 am, "Chase" <[EMAIL PROTECTED]> wrote:
> More like:> goalkeeper = models.ForeignKey(Player,
> related_name="goalkeeper_for")
> > leftback = models.ForeignKey(Player, related_name="leftback_
More like:
> goalkeeper = models.ForeignKey(Player, related_name="goalkeeper_for")
> leftback = models.ForeignKey(Player, related_name="leftback_for")
etc.
What ForeignKey does is creates a reference in the object related
(Player) so that you could also analyze the relationship in reverse
(i.
as in:
goalkeeper = models.ForeignKey(Player, UNIQUE)
leftback = models.ForeignKey(Player, UNIQUE)
centreback1 = models.ForeignKey(Player, UNIQUE)
centreback2 = models.ForeignKey(Player, UNIQUE)
rightback = models.ForeignKey(Player, UNIQUE)
leftmid = models.ForeignKey(Player, UNIQUE)
On 2/25/07, DuncanM <[EMAIL PROTECTED]> wrote:
>
> I have 2 classes:
>
> class Player(models.Model):
> team = models.ForeignKey(Team)
> forename = models.CharField(maxlength=50)
> surname = models.CharField(maxlength=50)
> age = models.PositiveIntegerField()
> sex = models.CharField(maxle
I have 2 classes:
class Player(models.Model):
team = models.ForeignKey(Team)
forename = models.CharField(maxlength=50)
surname = models.CharField(maxlength=50)
age = models.PositiveIntegerField()
sex = models.CharField(maxlength=1, choices=Gender_Choices)
class Admin:
pass
lis
8 matches
Mail list logo