Django Migrations - Relation Already Exists

3,746 views
Skip to first unread message

Rick Weinberger

unread,
Apr 23, 2015, 3:18:35 PM4/23/15
to django...@googlegroups.com
I posted the same question on stack overflow, here:  http://stackoverflow.com/questions/29830928/django-db-utils-programmingerror-relation-already-exists

I basically can't figure out how to get my app to migrate, and I can't use syncdb, because I inherit from contrib.auth.  I also can't find any documentation on the issue (closest I can find assumes I used to use South, which I did not) and searches for others with similar issues never seems to find my exact case.  Does anyone know where I can at least look for more information, if not how to fix it outright?

john

unread,
Apr 23, 2015, 3:24:41 PM4/23/15
to django...@googlegroups.com
I'm a newbie here so be careful.

I believe you can use
manage.py migrate --fake
That works for me.
Johnf


On 04/23/2015 11:37 AM, Rick Weinberger wrote:
I posted the same question on stack overflow, here:  http://stackoverflow.com/questions/29830928/django-db-utils-programmingerror-relation-already-exists

I basically can't figure out how to get my app to migrate, and I can't use syncdb, because I inherit from contrib.auth.  I also can't find any documentation on the issue (closest I can find assumes I used to use South, which I did not) and searches for others with similar issues never seems to find my exact case.  Does anyone know where I can at least look for more information, if not how to fix it outright?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9e8819bb-1ee9-4613-a27e-4a292bb5e957%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

marcin....@gmail.com

unread,
Apr 26, 2015, 8:19:47 PM4/26/15
to django...@googlegroups.com
I'm not a newbie. Just avoid Django (South) migrations and syncdb. 
My advice - generate complete SQL for your project (based on migrations or sql and sqlindexes commands), move changes to reliable tool (i.e. Liquibase) as an initial migration, tune changesets if needed, and forget about builtins. 

BR
Marcin
Reply all
Reply to author
Forward
0 new messages