Forums

Creating a Form and Inserting Data using Flask

I am trying to create a form using Flask, but nothing loads and it shows up an error. In which directories am I supposed to place the code?

Here is the link for how the results are supposed to look:

https://dzone.com/articles/flask-101-adding-editing-and-displaying-data

hi- what is the error that you are seeing?

Error running WGSI application. Module not found error: no module named "app".

Where do you import app?

I am not sure where I did this. I tried following the blog from the link above, but could not get it to work. What way do I have to structure the directories and files to produce a result from the blog?

Have a look at our help page on deploying Flask to PythonAnywhere: https://help.pythonanywhere.com/pages/Flask/