摘要: 一、多对多时自己创建第三张表 二、重点及归纳 1、多对多 --第三张表:自动创建、手动创建、手动+自动 2、自关联:互粉 重点: a、索引 b、一对多 c、一对一和一对多是什么关系? unique=True d、多对多 -- 第三张表:自动创建、手动创建、手动+自动 -- ### 多对多自关联:互粉 阅读全文
posted @ 2018-09-09 18:29 陆游憩 阅读(193) 评论(0) 推荐(0)
摘要: 1 from django.shortcuts import render,HttpResponse 2 3 def upload(request): 4 if request.method == 'GET': 5 return render(request,'upload.html') 6 els 阅读全文
posted @ 2018-09-09 17:53 陆游憩 阅读(195) 评论(0) 推荐(0)