If the model and flask as changes are made to models, you need to migrate a database, but I did not want talked about so deeply, it is now django model comes with a number sessiong, like the model damin
So if you want to go admin background management, an error occurs
(1146, "Table 'tuzhan.django_session' doesn't exist")
Tips database
tuzhan.django_session
this table does not exist
then the use migrate migration comes with its own
flask is (require plug-ins flask_migrate and flask_script) to review the
python manage.py init initialization, requires only one
Python manage.py migrate
Python upgrade manage.py
Django is
manage.py makemigrations Python
Python manage.py the migrate
can enter the admin
But before entering first create an admin account to enter
python manage.py createspueruser
They are the account, email, password, repeat password
Now enter the account password to 127.0.0.1:8000/admin
The default interface