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:
./manage.py migrate auth --fake-initial (this throws an error but ignore it)
./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.
- Comment out all of your custom installed apps. So, you have just the Django stuff.
- Migrate only auth:
./manage.py migrate auth
- Migrate everything else:
./manage.py migrate
- Undo step 1.
- Migrate all your apps:
./manage.py migrate
.
Good luck!