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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With