In a code example there is no open single quotes shop/product/detail.html',:
def product_detail(request, id, slug):
product = get_object_or_404(
Product, id=id, slug=slug, available=True
)
return render(
request,
shop/product/detail.html', # <<<<<<
{'product': product}
)