This is an interesting article but I don't understand why he says to forget the HTML and then goes into Flask.
There's a form-building framework built into Django (called Forms), or you can use a different HTML/form-building framework such as Flask.
The take-home message is: building forms in templates is fraught with peril. Use a framework to save time and heartache.