running day view with flask