I used wtforms to use forms in Flask, but I couldn't use <input type =" date ">
added from HTML5, so I checked it.
This is no good
model.py
from wtforms import DateField
date = DateField()
This is good.
model.py
from wtforms.fields.html5 import DateField
Reference: http://stackoverflow.com/questions/19588393/datefield-is-not-rendered-as-type-date
Recommended Posts