2015年10月20日

Django官方文档Model层之数据操作(主要是查询)

摘要: 1.新建:1 >>> from blog.models import Blog2 >>> b = Blog(name='Beatles Blog', tagline='All the latest Beatles news.')3 >>> b.save()通过实例化来建立的对象后需要调用save()... 阅读全文

posted @ 2015-10-20 22:32 chzb 阅读(261) 评论(0) 推荐(0)

导航