Answer the question
In order to leave comments, you need to log in
How to show today's date when using wtform?
Here is the form.py file, it contains a class:
class BoringForm(Form):
until = DateField('Дата отправления', format='%d.%m.%Y',
default=datetime.today(), validators=[DataRequired()])
<input class="form-control" id="until" name="until" required type="text" value="13.01.2016">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question