I keep getting the following error when doing a migration (python manage.py migrate):
django.db.utils.ProgrammingError: column \"name\" of relation \"django_
I know that is an old question, but this might help some one.
I was getting this error too. The problem was that content_types had a migration called 0002_remove_content_type_name that remove the column "name".
After remove migration data from table and folder this steps works for me:
./manage.py makemigrations myappname
./manage.py migrate myappname
./manage.py migrate --fake contenttypes
If you have sure that the rest of your db reflect your migration, you can use:
./manage.py migrate --fake
See the result with:
./manage.py showmigrations
After that, all your migrations should be marked and you should be fine