mainapp/views.py
def catalog(request):
    """
    Renders catalog and its items.
    :param request: request object.
    :return: rendered catalog page.
    """
    context = {
        'title': 'Каталог',
        'products': Product.objects.all()
    }
    return render(request, 'mainapp/catalog.html', context)

    Renders catalog and its items.
    :param request: request object.
    :return: rendered catalog page.
    
Renders catalog and its items.
Renders catalog and its items .
def catalog(request):
    context = {
        'title': 'Каталог',
        'products': Product.objects.all()
    }
    return render(request, 'mainapp/catalog.html', context)
def catalog ( request ) : context = { 'title' : 'Каталог', 'products' : Product . objects . all ( ) } return render ( request , 'mainapp/catalog.html' , context )
Renders catalog and its items.
Renders catalog and its items .
"""
    Renders catalog and its items.
    :param request: request object.
    :return: rendered catalog page.
    """
rendered catalog page.
rendered catalog page .
request
None