Add another
This commit is contained in:
6
products/views.py
Normal file
6
products/views.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.shortcuts import render
|
||||
from .models import Product
|
||||
|
||||
def product_list(request):
|
||||
items = Product.objects.all()
|
||||
return render(request, 'products/list.html', {'products': items})
|
||||
Reference in New Issue
Block a user