I've tried all of the solutions from the top results for this question on Google; none of them work for my situation:
doing
python manage.py migrate authbefore `python manage.py migrate didn't work (same error)changing all references to 'auth.User' in my models to AUTH_USER_MODEL didn't work (same error), and neither did get_user_model() (
makemigrationsdetected no changes anyway)doing
python manage.py makemigrations [app_with_user_relation]did not work either (migrations were made, but still got the same error)have deleted and recreated the database multiple times
Does anyone have any new suggestions?
I hear downgrading to Django 1.7 might work, but that is not an option for me.
If anyone is curious, the app I am trying to migrate is powerdns, from the open source package django-powerdns-manager.
Full traceback: https://dpaste.de/JdT5
The failing migration: https://dpaste.de/rfUn
Custom db router: https://github.com/mike-johnson-jr/django-powerdns-manager/blob/master/src/powerdns_manager/routers.py
migratecall, it's likely that your app is trying to access an User object too early (for example during import time).showmigrations? Does it show the migration containing the user relation to be run?