Django 1.8 migrate - relation “django_content_type” already exists

890 views
Skip to first unread message

Adam Teale

unread,
Jun 16, 2015, 3:22:39 PM6/16/15
to django...@googlegroups.com
Hi Guys,

Any idea why I would be getting this error when I try to migrate?

django.db.utils.ProgrammingError: relation "django_content_type"

I am using using django 1.8 & postgresql

Thanks!

Adam

Tim Graham

unread,
Jun 16, 2015, 4:18:26 PM6/16/15
to django...@googlegroups.com
Take a look at the migrate --fake-initial option. It's new in 1.8. In 1.7, --fake-initial was an implicit default, but we decided to make it explicit in 1.8.

https://docs.djangoproject.com/en/1.8/ref/django-admin/#django-admin-option---fake-initial

Leandro Zanuz

unread,
Jun 16, 2015, 4:35:43 PM6/16/15
to django...@googlegroups.com

Maybe you need make migrations for all your apps or remove all apps to use migrations. I had the same problems, but with auth_group. In my case, I removed all apps to use migrations and works fine.

http://stackoverflow.com/questions/25161425/disable-migrations-when-running-unit-tests-in-django-1-7

But on django 1.9 migrations will be mandatory for all apps I think.

--
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/0817de32-fa2a-4b63-84df-99758b49ebe5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Enviado via UCSMail.
Reply all
Reply to author
Forward
0 new messages