摘要: 一、建立数据库模型类 1.在model里创建模型类。(继承models.Model) 创建模型类 1 2 3 4 5 6 7 8 9 10 1 class Order(models.Model): 2 TYPE_CHOICE = ( 3 (0, u"普通运单"), 4 (1, u"绑定关系"), 5 阅读全文
posted @ 2020-11-02 08:23 白金崖谷 阅读(109) 评论(0) 推荐(0)