def comment(request, pk):
post = get_object_or_404(Product, pk=pk)
if request.method == 'POST':
form = CommentForm(request.POST)
if form.is_valid():
comment = form.save(commit=False)
comment.post = post
comment.save()
else:
form = CommentForm()
return render(request, 'App/Product_information.html', {'post': post, 'form': form})