I'm seeing an error when running my tests, i.e. $ ./manage.py test --settings=my.test.settings
django.db.utils.ProgrammingError: relation "<relation name>" does not exist
This is after running ./manage.py makemigrations && migrate
.
This error turns out (usually) to be caused, ultimately, by failing to create the initial migration for a new app. the error was resolved by running $ ./manage.py makemigrations <my new app module name> && migrate
NOTE: makemigrations
DOES NOT AUTOMATICALLY CREATE THE INITIAL MIGRATION FOR NEW APPS
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