[Answer]-Django tries to read from wrong DB table

1👍

✅

Found that.

I ran this :

$ python manage.py inspectdb

and found out what my models need to be. It seems that the difference was the :

class Meta:
       managed = False
       db_table = 'Center'

that was missing.

Link for the official documentation about using a legacy DB.

Leave a comment