Ran into a bit of a problem, i'm getting the above error message when i run 'python manage.py syncdb
' I'm working on a fairly old site. It' running django 1.2.6 with a postgres DB.
The run didn't have south installed and i managed to get that working. Ran python manage.py schemamigration --initial contact_enquiries
which ran fine and asked me to migrate. I then ran python manage.py migrate contact_enquiries
I then got the same error as above.
It doesn't complaing about any of the syntax in my models which is why i'm confused. Here are my models and hopefully that will shed some light.
from django.db import models
class DocumentUpload(models.Model):
name = models.CharField(max_length="200")
document_upload = models.FileField(upload_to="uploads/documents")
def __unicode__(self):
return "%s" % self.name
class DocumentRequest(models.Model):
name = models.CharField(max_length="200")
company = models.CharField(max_length="200")
job_title = models.CharField(max_length="200")
email = models.EmailField(max_length="200")
report = models.ManyToManyField(DocumentUpload)
def __unicode__(self):
return "%s" % self.name
If you need anymore information, please let me know.
Thanks!