Forums

Displaying inbound webhook data from my SQL database on pythonanywhere

Hello my problem is, I can receive the data from an inbound webhook and I can save the data to my pythonanywhere MYSQL database but no matter what code I use, I can not display the data from my table on a url in my flask app.

Is this possible to do?

overview- I receive an inbound webhook from vonage, it saves the data to my sql table and I can see it gets saved in my table but it will not print the data to a url named messages.html in my flask app. Other functions in my table work, I can retrieve the username and amount of credits for a user in the table and then deduct a credit and update the table but i can not simply display the data from the table in a url

FIXED i added a second webapp and was able to print the data received by my other webapp

What happens when you try to extract the data? Are you getting an error of some kind?

Hi Giles, im not sure what was happening or why I could not print or display the data so I added another webapp and used it to print the data now it works fine

OK -- glad to hear you worked out a solution!