Home > database >  Why the Django as specified by the attribute name and field name can add data?
Why the Django as specified by the attribute name and field name can add data?

Time:11-21

Why specifies the name of the field for the title, but also can by adding the data attribute btitle?
In MySQL to find relevant data, I found through the title='aircraft bombs and btitle=' aircraft tanks can be added, but through the select * from data table; The other showed normal,
But by adding the field title='aircraft bombs'' title 'items, no display content, the other fields showed normal,
But python into virtual environment manage. Py shell; By the title and btitle can find their corresponding data in a ' 'title', '
Btitle=models. CharField (max_length=20, db_column='title')
  • Related