# Category List

views.py

```python
def category_list(request):
    categories= Category.objects.all()
    return render(request,'category/list.html',{'categories':categories})
```

html

```python
    <ul>
        {% for category in categories %}
        <li> {{category.name}}  </li>

        {% endfor %}
    </ul>
```

urls.py

```

urlpatterns = [
    path('categories/',views.category_list,name='category_list'),
]
```
