Connecting to a Database in Flask Using Flask-SQLAlchemy

preview_player
Показать описание
In this video I'll show you how to connect to a database in Flask using Flask-SQLAlchemy.

Рекомендации по теме
Комментарии
Автор

Thanks Anthony the on;y channel that covers SQLalchemy videos

rishabkumar
Автор

I know a little bit of flask but I'm more comfortable with laravel and it has ORM, so I was a bit hesitant to whether I should keep learning flask or jump to Django but your series convinced me to keep using flask

AbderrahmanFodili
Автор

oh my god, I've been stuck in the tutorial since morning, thank you for this!

MicaelAngeles
Автор

thank you very much, man you deserve more subs.

SurafelRapper
Автор

Is there a way to have multiple databases used?

secretasianman
Автор

The tutorials are extremely helpful. I however couldn't access the free course on the provided link. Is it still available?

denniskiboi
Автор

Unresolved attribute reference 'String' for class 'SQLAlchemy' . db.column does not recognize. Thank you

officeformat
Автор

How did you activate autocomplete for SQLAlchemy in VS Code? I have no autocomplete for this package...

legohistory
Автор

How to write a trigger in sql alchemy.??

RedRose-ncqw
Автор

Hi. Can anyone help me with the connection string for the AZURE Sql db. I have been stuck on this for last three days. IT would be a great help if someone could guide me. Thanks in advance

TechWithManali
Автор

When running I got RuntimeError: Working outside of application context. If it's of any help, I discover somewhere else that instead of python I had to run flask shell. It worked.

odelaf
Автор

Hi Sir, my program doesn't create a db.sqlite3 file, instead it creates a directory 'instances' with no files inside it. I mean it fails to create the said file. What might be to possible reason? Thanks

MKSundaram
Автор

This typically means that you attempted to use functionality that needed
the current application. To solve this, set up an application context
with app.app_context(). See the documentation for more information.

Thats the error message i get when i ran db.create_all(). pls any solution how to add the app.app_context() to my code??

obajbola
Автор

when " from app import db" , shows ModuleNotFoundError: No module named 'main'? help, please

myrov
Автор

from app import db
shows
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'app'....pls help

yadavsunny
Автор

I found an error

flask_sqlalchemy module not found

akhileshverma
Автор

What is benefit of using sqlalchemy ORM over directly using respective database driver?
We learnt SQL, now why to put effort to learn sqlalchemy?

kmishy
Автор

when I run db.create_all()

I keep running into this error: RuntimeError: Working outside of application context.

ahmadabdallah
Автор

Hi
thanks for this video... I would like to ask you if is it possible to create the table from the python file code, instead of gettign into the terminal???:

if "__name__" == "__main__":
db.create_all()
app.run(debug=True)

For this I'm using:

And my laragon local server is on

JoseHernandez-qkby
Автор

db.create_all() no longer works for Python3.10? It keeps talking about application context

Veektaw