# Unable to progress with Flask based web application

**URL:** <https://discuss.python.org/t/unable-to-progress-with-flask-based-web-application/74809>\
**Category:** Python Help\
**Created:** [December 20, 2024, 4:06pm UTC](https://discuss.python.org/t/unable-to-progress-with-flask-based-web-application/74809 "2024-12-20T16:06:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanabegeek](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/wanabegeek/32/24686_2.png) [@wanabegeek](https://discuss.python.org/u/wanabegeek)\
**Post date:** [December 20, 2024, 4:06pm UTC](https://discuss.python.org/t/unable-to-progress-with-flask-based-web-application/74809/1 "2024-12-20T16:06:54Z")

</div>

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

 ![Corsera Terminal Screenshot Instructor](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/0/c/0c17f7620061867c92dd7a97d4fb2db0b7d536fe.jpeg)

---

<div class="post-metadata">

**Author:** ![wanabegeek](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/wanabegeek/32/24686_2.png) [@wanabegeek](https://discuss.python.org/u/wanabegeek)\
**Post date:** [December 20, 2024, 4:07pm UTC](https://discuss.python.org/t/unable-to-progress-with-flask-based-web-application/74809/2 "2024-12-20T16:07:25Z")

</div>

![Corsera Terminal Screenshot](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/1/a/1add52530313e018a9408c2f195deadbd5b8e6c0.png)

---

<div class="post-metadata">

**Author:** ![sergiu](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@sergiu](https://discuss.python.org/u/sergiu)\
**Post date:** [December 22, 2024, 8:35am UTC](https://discuss.python.org/t/unable-to-progress-with-flask-based-web-application/74809/3 "2024-12-22T08:35:50Z")

</div>

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`.

---

<div class="post-metadata">

**Author:** ![wanabegeek](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/wanabegeek/32/24686_2.png) [@wanabegeek](https://discuss.python.org/u/wanabegeek)\
**Post date:** [January 2, 2025, 1:22pm UTC](https://discuss.python.org/t/unable-to-progress-with-flask-based-web-application/74809/4 "2025-01-02T13:22:22Z")

</div>

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.
