# Post List

views.py

```python
def post_list(request):
    posts= Post.objects.all()
    return render(request,'blog/list.html',{'posts':posts})
```

html

```html
    <ul>
        {% for post in posts %}
        <li> {{post.title}}   </li>

        {% endfor %}
    </ul>

```

urls

```
    path('post_list',views.post_list,name='post_list'),
```
