[PYTHON] Use <input type = "date"> in Flask

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

Use <input type = "date"> in Flask
Date of Address already in use error in Flask
Use the type features evolved in Sphinx-2.4
Minimum knowledge to use Form in Flask
Tips when amateurs use Flask in Visual Studio
Error in Flask OSError: [Errno 98] Address already in use
Allow HTML5 <input type = "date / time"> to be used in DatetimeField form in Django
Key input in Python
Use config.ini in Python
Use DataFrame in Java
Use dates in Python
Use pycharm for input completion of local variable type
Use Mean in DataFrame
Date manipulation in Python
Easy to use Flask
Use Valgrind in Python
Set the form DateField to type = date in Django
Reasons to use long type in SQLite3 (C # Mono.Data.Sqlite)
Use ujson in requests
Get date in Python
Date calculation in python
Use profiler in Python
Key input in Python
Date calculation in Python
Use date to x-axis of tsplot depicted in seaborn
Image uploader in Flask
Let's use def in python
Use "$ in" operator with mongo-go-driver
Use let expression in Python
Use Anaconda in pyenv environment
Use Measurement Protocol in Python
Write standard input in code
Use callback function in Python
Use parameter store in Python
Use HTTP cache in Python
Use regular expressions in C
Use MongoDB ODM in Python
Use list-keyed dict in Python
Python Input Note in AtCoder
Use Random Forest in Python
Use regular expressions in Python
HTTP environment variables in Flask
Use Spyder in Python IDE
Use Juman ++ in server mode
Methods available in set type
Simply check Content-Type in Flask (@content_type)
Celery asynchronous processing in Flask
String date manipulation in Python
ยท Address already in use solution
[Python] How to use input ()
Mastering type hinting in PyCharm
Upload multiple files in Flask
Sort by date in python
Save Time type in SQLAlchemy