一.在models.py创建模型

django的ORM

 

class Book(models.Model):        # 表名就是app名_类名
    id = models.AtuoField(primary_key=Ture)
创建模型

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2021-12-22
猜你喜欢
  • 2021-07-11
  • 2021-07-18
  • 2022-02-27
  • 2021-05-16
  • 2021-06-17
  • 2021-06-07
相关资源
相似解决方案