librelist archives

« back to archive

how to configure Flask to work with MySQL database server?

how to configure Flask to work with MySQL database server?

From:
Tony Wang
Date:
2011-05-20 @ 19:14
I would like to start building a Flask app with MySQL. I was just wondering
what I should do for this? should I consider SQLAlchemy? If so, is there any
Flask code example for using SQLAlchemy module? Thanks!

tony

-- 
- Are you RCholic? www.RCholic.com
- 温 良 恭 俭 让 仁 义 礼 智 信
- Through suffering to renown

Re: [flask] how to configure Flask to work with MySQL database server?

From:
Owen Marshall
Date:
2011-05-20 @ 19:19
On 05/20/2011 03:14 PM, Tony Wang wrote:
> I would like to start building a Flask app with MySQL. I was just
> wondering what I should do for this? should I consider SQLAlchemy? If
> so, is there any Flask code example for using SQLAlchemy module? Thanks!

Hi,

Take a look at the Flask-SQLAlchemy extension, which works beautifully
with Flask.

http://flask.pocoo.org/docs/patterns/sqlalchemy/

-- 
Owen Marshall
FacilityONE
http://www.facilityone.com | (502) 805-2126

Re: [flask] how to configure Flask to work with MySQL database server?

From:
Kenneth Reitz
Date:
2011-05-20 @ 19:18
SQLAlchemy is exactly what you want.

There's a pre-made, well-documented project for it:

 http://packages.python.org/Flask-SQLAlchemy/

-- 
Kenneth Reitz

On Friday, May 20, 2011 at 3:14 PM, Tony Wang wrote: 
> I would like to start building a Flask app with MySQL. I was just 
wondering what I should do for this? should I consider SQLAlchemy? If so, 
is there any Flask code example for using SQLAlchemy module? Thanks!
> 
> tony
> 
> -- 
> - Are you RCholic? www.RCholic.com
> - 温 良 恭 俭 让 仁 义 礼 智 信
> - Through suffering to renown
>