文件名称:django-blog
文件大小:33.1MB
文件格式:ZIP
更新时间:2024-04-14 09:45:53
Python
git init git status git add . git commit -m 'message' 一种获取数据model_set # this withh get all post of user pk = 1 User.objects.get(pk=1).post_set.all() 创建一个新帖子 # no need for save() it already created nd saved in thee same time User.objects.get(pk=2).post_set.create(author = 'name', title = 'home')