1👍
✅
Parameters from the URL are always strings. Since you know it is always going to be a digit between 1 and 5, you can convert it to an int in the view:
return render(request, 'block/succes_view.html', {'block_number': int(block_number)})
Source:stackexchange.com