Information about an API in your web application - Flask Python

0

I'm a beginner in python and I'm venturing into flask because I found learning better than Django. So I apologize for my ignorance of what I'm going to ask, or if my code is wrong, how do I get information from a website API and play a table in my application?

    
asked by anonymous 09.04.2018 / 03:25

1 answer

0

You have to pass the data as an argument.

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

Another alternative is to use AJAX.

    
09.04.2018 / 08:17