Why we need model on Django ?
step01:
create a database name as (django_db) on mysql ...

step02:
configure your django to use the mysql ...
vim settings.py
modify the DATABASES item ...

step03:
check whether you have install it success ...
python manage.py shell

If you just see something like ( >>> )
mean you have success ...
step04:
For use our database,we should create a app
python manage.py startapp books
cd books
tree

step05:
vim models.py
Write the below code ...

Can we drop this masquerade

浙公网安备 33010602011771号