Information from an API in your web application - Flask Python

Asked

Viewed 75 times

0

I’m a beginner in python and I’m venturing into flask because I thought learning better than Django. So excuse my ignorance of what I’m going to ask or if my code is wrong, more like I do to take information from a website API and play in a table in my application?

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

1 answer

0

You have to pass the dice as argument.

return render_template('index.html', data=game())

Another alternative is to use AJAX.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.