# Please help with python flask-sqlalchemy?

**URL:** <https://forum.freecodecamp.org/t/please-help-with-python-flask-sqlalchemy/332554>\
**Category:** General\
**Created:** [December 11, 2019, 8:46pm UTC](https://forum.freecodecamp.org/t/please-help-with-python-flask-sqlalchemy/332554 "2019-12-11T20:46:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adeoyewole028](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adeoyewole028/32/129384_2.png) [@adeoyewole028](https://forum.freecodecamp.org/u/adeoyewole028)\
**Post date:** [December 11, 2019, 8:46pm UTC](https://forum.freecodecamp.org/t/please-help-with-python-flask-sqlalchemy/332554/1 "2019-12-11T20:46:40Z")

</div>

I’m having a little problem with flask-sqlalchemy in eclipse IDE. I want to import db from app but i keep getting ModuleNotFoundError… I’ll just paste the result here for you to see.

> > > from app import db  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > ModuleNotFoundError: No module named ‘app’

---

<div class="post-metadata">

**Author:** ![alkapwn3d](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/alkapwn3d/32/92787_2.png) [@alkapwn3d](https://forum.freecodecamp.org/u/alkapwn3d)\
**Post date:** [December 11, 2019, 9:39pm UTC](https://forum.freecodecamp.org/t/please-help-with-python-flask-sqlalchemy/332554/2 "2019-12-11T21:39:39Z")

</div>

so do you have an app folder? what is the name of the folder that `db` is in?

```auto
# file: app.py

# paths
# root/mymodule/db.py
# root/app.py

from mymodule import db
```

---

<div class="post-metadata">

**Author:** ![adeoyewole028](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adeoyewole028/32/129384_2.png) [@adeoyewole028](https://forum.freecodecamp.org/u/adeoyewole028)\
**Post date:** [December 13, 2019, 8:33am UTC](https://forum.freecodecamp.org/t/please-help-with-python-flask-sqlalchemy/332554/3 "2019-12-13T08:33:03Z")

</div>

Thank you for your swift response. I’m a total noob to the whole web development. I cant find which folder the app is located.  
I have installed flask-sqlalchemy using the pip install flask-sqlalchemy. I cant find the exact path it was installed and if the module is in the folder

---

<div class="post-metadata">

**Author:** ![brandon\_wallace](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/brandon_wallace/32/198757_2.png) [@brandon\_wallace](https://forum.freecodecamp.org/u/brandon_wallace)\
**Post date:** [March 14, 2020, 4:37pm UTC](https://forum.freecodecamp.org/t/please-help-with-python-flask-sqlalchemy/332554/4 "2020-03-14T16:37:05Z")

</div>

@adeoyewole028 It is often helpful to look at how others have structured their Python/Flask projects. There are many ways to do it, including an advanced method using “Flask Blueprints”. You can do a search on how to structure your Flask application. Play around with your project a bit and you will learn more and more. One more thing, watch out for circular imports. Did you get your project working? Do you have a link to the code so we can look at it?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 11:27am UTC](https://forum.freecodecamp.org/t/please-help-with-python-flask-sqlalchemy/332554/5 "2021-01-16T11:27:59Z")

</div>

Closed on January 16, 2021, 11:27am UTC


