Unable to progress with Flask based web application

Hello. I’m fairly new to python. I’ve been trying to create a web application using Flask. Ive followed two different tutorials and whenever I get to the point where I need to create an instance of a database I can’t get any further. In both cases, the tutorials show a message after importing db from app. I don’t get that message. then in both tutorials they create an instance of db, which is then used to progress to the next stage. I, however get an error message at this point. I’m including screenshots, so if anyone can see where I’m going wrong, please help. Thanks

It is best to use the same Flask version that they use in the tutorial, and the same dependencies.

The tutorial may provide a requirements.txt file for this purpose, which you then install with pip install -r requirements.txt.

the screenshots are from a virtual environment provided by the course provider. All the software used is online-based. There were no separate installations, so everything should be the same version. However, the course provider hasn’t been able to answer me either. Maybe it is there problem.

Then again, the exact same problem occurred when I did it all myself on my own system. I ran everything in my own virtual environment. I’ll need to go back and double-check version details for what I did. If that is the answer, I’ll let everyone know.