Flask Tutorial #7 - Using SQLAlchemy Database

Flask Tutorial #7 - Using SQLAlchemy Database

Tech With Tim

4 года назад

223,675 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Cha Lee Priv
Cha Lee Priv - 16.07.2023 15:07

Could you please make video about using SQLalchemy directly over flask-sqlalchemy extension, how they looks in code, benefits.

Ответить
Rishikesh Kumar
Rishikesh Kumar - 20.05.2023 03:30

Other tutorials are good but this tutorial 7 is quite confusing, the same variable are used multiple times and modifying older code makes it more confusing.

Ответить
Kevin Santosa
Kevin Santosa - 11.04.2023 05:42

sexxxxx oughhh

Ответить
Simon Oravec
Simon Oravec - 02.01.2023 13:44

Tim you are a great teacher. Please make the video also for logging in with a password. You will help me with my thesis :D :D Thank u!

Ответить
Ismael Jiménez
Ismael Jiménez - 30.10.2022 01:11

How can I upload an image to the database ?

Ответить
Ivana Hackalot
Ivana Hackalot - 17.10.2022 19:38

you look like Hayden Christensen as young skywalker

Ответить
Paul Cal
Paul Cal - 08.10.2022 21:14

Thanks Tim. The source code would be really helpful with this one.

Ответить
Alfred
Alfred - 15.09.2022 15:11

how to dynamically switch db connection depending upon the request header company parameter.

Ответить
mahdi mms2
mahdi mms2 - 06.09.2022 21:10

hi, so how can we see whats in our database???

Ответить
yunglung420
yunglung420 - 12.08.2022 20:20

you're using the same variables for different things. This makes it seem much harder than it actually is.

Ответить
romel
romel - 20.05.2022 01:30

I got TyperError: def _init_ 1 argument required, 3 arguments passed. What is going on?

Ответить
dukiiii
dukiiii - 06.04.2022 19:38

Thank you for great effort in making these tutorials! Kudos!
However I haven't found how to create mysql temporary tables in Flask-SQLAlchemy and then to fill them with data and to use them in .join clause.
Maybe that could be one of your topics?
Keep up the excellent work!

Ответить
Yan
Yan - 17.02.2022 19:33

Is it Tim? No PEP8, no flask-login. Bad tutorial((

Ответить
NoodlePlexium
NoodlePlexium - 16.02.2022 14:42

I added a password variable to "Class users". Now I'm getting an error where the database says that "password" dosen't exist???

Ответить
HeroVader
HeroVader - 11.02.2022 17:30

Soon text based tutorial!

Ответить
面面喵
面面喵 - 12.01.2022 04:44

your channel save my life

Ответить
Francisco Hinojosa Luna
Francisco Hinojosa Luna - 08.01.2022 03:39

Hi! anyone know if i upload the local data base in my folder app to heroku, it would work the same way as my local server in developing? Or i need to connect it to an online data base?

Ответить
Harry Hobson
Harry Hobson - 02.01.2022 17:09

Text-Based Tutorial: Coming Soon... It has been 2 years.

Ответить
Piotr
Piotr - 26.09.2021 18:40

Don't use flask_sqlalchemy its more complicated then flask + SQLalchemy alone

Ответить
Michael Truong
Michael Truong - 05.08.2021 02:36

why is there an underscore before "id"?

Ответить
S A
S A - 18.07.2021 18:57

Text-Based Tutorial: Coming Soon...? What did you mean by soon?

Ответить
Jana prasanna
Jana prasanna - 14.07.2021 16:05

TypeError: column() got an unexpected keyword argument 'primary_key' can anyone help me out with this error?

Ответить
Gerard G.
Gerard G. - 17.05.2021 15:40

i belive that sqlite:///users.sqlite3 sets the name of your database to users, your tables are the names of the classes that inherit from db.Model

Ответить
_-_-_
_-_-_ - 11.04.2021 17:33

Please don't mention you are clueless about anything you mention. It doesn't add much credibility and respect. Thanks for the job mate anyways, well done job and very helpful for someone who never touched python+flask. It indeed allows you to get familiar with this in a few hours

Ответить
Admin
Admin - 21.03.2021 12:15

your video length is small but you explain every thing that required in that time don't know how you do but you are great , it help very much 🔥🔥🔥🔥👌

Ответить
Sai Shyam
Sai Shyam - 19.03.2021 21:18

can anyone share the code for this video

Ответить
Orkhan Ahmadov
Orkhan Ahmadov - 08.03.2021 00:58

you are the best Tim thank you!

Ответить
Hassan N
Hassan N - 24.01.2021 22:01

Thanks, kindly create a video for user authentication.

Ответить
Eccomi
Eccomi - 19.01.2021 20:03

why dont you use elif. i think i commented that somewhere else but it confuses the hell out of me

Ответить
DrErrday
DrErrday - 29.12.2020 13:37

i installed SQLAlchemy in my venv but class Column has no attribute and cannot be accessed. Is anyone else having this issue im using IntelliJIdea as IDE.

Ответить
Fc Morena
Fc Morena - 10.12.2020 15:02

thanks for the tutorials, easy to understand

Ответить
whatevertrial Nick
whatevertrial Nick - 07.12.2020 16:09

It isn't showing the flash!!!

Ответить
Constantine Westerink
Constantine Westerink - 12.11.2020 07:40

does sqlite3 work

Ответить
Preston Brown
Preston Brown - 08.10.2020 17:02

Can we also just use setting like sqlite (which comes with python) as our db.

Ответить
Paul R
Paul R - 17.09.2020 13:45

Please make a Video on User authentification!

Ответить
John Giles
John Giles - 31.08.2020 03:28

So i had a error on db at line 11 and I imported "from sqlalchemy.testing import db" is recommended to fix it. That gives me another error at run time. Did I do the right thing or am I missing something? Did the pip not install correctly? On PyCharm...

Ответить
TheGreenDog
TheGreenDog - 25.08.2020 22:58

it's not letting me import sqlalchemy. It says it is already installed, but still cannot import it

Ответить
ChummiBear
ChummiBear - 25.08.2020 12:10

I love this flask tutorial. I've watched all of it. It's what I needed to get started. My question is why not use python's built in sqlite module rather than installing the third party sqlalchemy? I feel like the need to use sqlalchemy made this and the next video more difficult to digest than it needed to be. I'd really love a more in depth on sqlalchemy to help wrap my head around it. Thanks for all the hard work.

Ответить
Benjamin McGregor
Benjamin McGregor - 20.08.2020 18:19

'Unresolved attribute reference' for both 'Integer' and 'Column'. Found many others having the same problem and not one solution. All the imports working fine it just appears SQLAlchemy has no such attributes

Ответить
Emiliano Antuñano
Emiliano Antuñano - 08.08.2020 22:15

can't seem to find the repository for this on your GitHub :^(

Ответить
Adedamola Afuye
Adedamola Afuye - 31.07.2020 17:47

Can't install sqlalchemy... Getting error messages like could not find a version that satisfies the requirement sqlalchemy and no matching distribution found for sqlalchemy.. Benn sucked here for days now

Ответить
Daniel Azulay
Daniel Azulay - 25.07.2020 21:40

Lol, login page is vulnerable to XSS, guys - be aware!

Ответить
Flatbridge
Flatbridge - 01.07.2020 23:05

Is there any way to use an already existing database? I've been looking around but I can't see any sources pointing to how to do this

Ответить
waqasloverboy
waqasloverboy - 07.06.2020 15:15

It's a bit confusing, you installed SQLAlchemy but than imported from flask-SQLAlchemy, more over am a getting an error 1101 Instance of SQLAlchemy has no column member, i have went through stack overflow but nothing is working, tried installing pylint-flask and pylint-flask-sqlalchemy.

Ответить