Python Forum
Flask or Django: Which Framework Support Database?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flask or Django: Which Framework Support Database?
#1
Hello All, I am working on a web development project and I want to know which one is support database between Flask and Django? According to this post, Django supports the most popular relational database management systems like MySQL, Oracle etc but not an idea about Flask. Can anyone know, Is flask support database?
Reply
#2
Flask works well with sqlalchemy (ORM), so pretty much any DBMS that's out there.

I wrote a web page using PostgreSQL and also SQLite3 using SQLAlchemy (ORM) and bootstrap template, There's only a few lines in the model that need to be changed to switch from one DBMS to another, so you can support more than one on the same database if that's desirable.
If you are not familiar with SQLAlchemy, take a look at:
SqlAlchemy Tutorial - Basic Model, database Creation and Data Load
Reply
#3
The standard way in Flask for use of database is trough Flask-SQLAlchemy.
Connection URI Format.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask or Django? Truman 10 4,472 Jul-05-2019, 04:21 PM
Last Post: nilamo
  Get PyCharm, Support Django - 30% discount until November 1st buran 0 2,391 Oct-30-2018, 08:19 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020