Answer the question
In order to leave comments, you need to log in
How to display a dynamically updated page with Flask?
Dear toasters, I have a question for you.
How to display a dynamically updated page using flask, for example, a
date and time string once per second.
import datetime
import time
while True:
time.sleep(1)
now_time = datetime.datetime.now()
vremya = now_time.strftime("%d\%m\%Y %H:%M:%S")
print vremya
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