Reference:
Http://www.crazyant.net/1005.html
http://gmingzhe.blog.51cto.com/810664/163051
All fields, default Blank=false, so all are required cannot be empty
All fields, default Null=false, front-end fields automatically insert empty strings (date, time, and numeric fields do not accept empty strings, for these three types, either display a default value, or display a set null=true)
Create a new admin.py in the app directory to register the MODELS,EG that requires background management:
From models import bookfrom django.contrib import adminadmin.site.register (book)
Django.contrib.admin.ModelAdmin: Classes for managing background pages
Urls.py in the following two lines of the role is to let the admin actively discover the app's admin.py file
From Django.contrib import Adminadmin.autodiscover ()
The selection of Django form fields and the management of the background interface