nazmul hasan
nazmul hasan

Reputation:

Working with django and sqlalchemy but backend mysql

I am working with python's django framework. My models are sqlalchemy and my back-end database is mysql. How will I configure them?

Upvotes: 1

Views: 926

Answers (2)

gimel
gimel

Reputation: 86482

See Django database installation,

If you’re using MySQL, you’ll need MySQLdb, version 1.2.1p2 or higher. You will also want to read the database-specific notes for the MySQL backend.

And the MySQL notes,

Django expects the database to support transactions, referential integrity, and Unicode (UTF-8 encoding). Fortunately, MySQL has all these features as available as far back as 3.23. While it may be possible to use 3.23 or 4.0, you'll probably have less trouble if you use 4.1 or 5.0.

Upvotes: 0

Related Questions