DEV Community

Discussion on: Flask vs. Django?

Collapse
 
tobiassn profile image
Tobias SN

It seems to me that you have never used Flask before. It has absolutely no database functionality whatsoever, and thus no ORM.

Collapse
 
imronlearning profile image
Michael Learns • Edited

is that so? maybe i didn't state it properly. you can definitely create tables using the models.py sort of like similar to django's python manage.py makemigration and python manage.py migrate. except in Flask it's python manage.py db migrate and python manage.py db upgrade

Collapse
 
tobiassn profile image
Tobias SN

There’s no manage.py in Flask unless you created it manually. From the website: “By default, Flask does not include a database abstraction layer”

Thread Thread
 
rorixrebel profile image
Miguel Valdes

Agreed, seems like op has never truly used flask. ORM ain't part of it by default.

Thread Thread
 
imronlearning profile image
Michael Learns

Oh! Thanks 😄guess I missed that part.

Granted, I did only use and learn Flask within a week so I missed quite a bit of information. Thank you for making this clear 😅

Thread Thread
 
tobiassn profile image
Tobias SN

Glad I could help.