2 回答
(request): title = request.POST.get() content = request.POST.get() article_id = request.POST.get() article_id == : title != content != : models.Article.objects.create(=title=content) articles = models.Article.objects.all() render(request{: articles}) : article = models.Article.objects.get(=article_id) article.title = title article.content = content article.save() render(request{: article})
举报
0/150
提交
取消