Django 1.8 migrate - relation "django_content_type" already exists Django 1.8 migrate - relation "django_content_type" already exists postgresql postgresql

Django 1.8 migrate - relation "django_content_type" already exists


You're going to need to use the --fake-initial option when you migrate; it used to be implicit, but has now been made explicit:

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

To quote:

This option is intended for use when first running migrations against a database that preexisted the use of migrations.

Good luck!


This worked for me:

  1. ./manage.py migrate auth --fake-initial (this throws an error but ignore it)

  2. ./manage.py migrate --fake-initial


I, like many, don't really understand the problem. I was able to devise a solution that worked for me.

  1. Comment out all of your custom installed apps. So, you have just the Django stuff.
  2. Migrate only auth: ./manage.py migrate auth
  3. Migrate everything else: ./manage.py migrate
  4. Undo step 1.
  5. Migrate all your apps: ./manage.py migrate.

Good luck!