from .models import Post def posts_list(request): posts = Post.objects.all() return {'posts': posts}