It's best to change the table name you create into prefix and django Automatically create table names with the same prefix , It's ok if you don't change it , But too many late tables are easy to be confused .
stay django perform
python manage.py inspectdb > models.py
Synchronize tables in the database , And generate a new models.py, Will generate models.py File overwrite app Medium models.py Just go .
Last synchronize database
python manage.py makemigrations
take app Under folder migrations
Delete all contents of the folder , Folder retention , You can then execute the following command .
python manage.py migrate