[Fixed]-Django template add and compare does not work on Heroku

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)})

Leave a comment