reading-notes

Software Development Reading Notes

View on GitHub

Django models

Fields

Fields are like database attributes, filed definition includes name and type.

Methods

methods like create, update, delete and search etc are used to communicate with data in database.

run database migration

so to add models to database.

Django admin site

Can use Django models to automatically build a site area to create, view, update and delete records.

register models

register before can be used.

create a superuser

can do everything with data.

logging and use site

There is a GUI for you to play with data fields.

ModelAdmin

to change how a model is displayed in the GUI.