我试图在其配置文件页面中显示特定用户的所有帖子。因此,如果有人访问我的个人资料页面,他们可以看到我所有的帖子等等。`all_post_by_user = Log.objects.filter(author=username)`username作为参数传递给视图。not found for {username}')
在我的数据库中有一对表(tableA和tableB),这两个表的外键都引用了tableC中的同一列ID。我能够使用的SQL是FROM tableAWHERE tableB.year=2011SELECT*INNER JOIN tableB on tableA.ID=tableB.ID AND tableB.year=