I am trying to use South to add a new URL field to the model, for example:
class Document(models.Model): text = models.TextField() reference_page = models.URLField(blank=True, null=True) source_page = models.URLField(blank=True, null=True)
However, when I run python manage.py schemamigration myapp --auto
, I get an error:
DatabaseError: column myapp_document.source_page does not exist LINE 1: ...ext", "myapp_document"."reference_page", "myapp_doc...
I am using PostgreSQL as my DB. I correctly initialized my application for the South and have already completed the migration. I made sure my Django and South installations were updated.
Why am I doing this now?
Edit: Oddly enough, if I manually created a column in the database, the schemamigration
call succeeds, but, of course, the migrate
call fails, until I manually delete the column. This is strange.
Cerin source share