存放路径:https://git.lug.ustc.edu.cn/
笔记
外键与多键
path = models.ForeignKey(to="Path")file = models.ManyToManyField(to="File")
code 处理方式
new_path = request.POST.get("new_path",None)models.File.objects.create(name=new_user,path_id=new_path)// 多键
files = request.POST.getlist("files")user_obj = models.User.objects.create(name=new_user)
user_obj.file.set(files)