views:

152

answers:

1

I'm interested in running Django on an async framework like Concurrence or gevent. Both frameworks come with its own async MySQL driver.

Problem is Django only officially supports MySQLdb. What do I need to do to make Django work with the MySQL drivers that come with gevent or Concurrence?

Is there a step-by-step guide somewhere that I can follow? Is this a major undertaking?

Thanks.

A: 

Django is synchronous framework that is (AFAIK) not even proved to be thread-safe. I'm afraid making it work in async way will be difficult, if not impossible.

Anyway, I'd say you can "fork" mysql backend and alter it to use async drivers. This is easy, but as said above - I'm afraid it will definitely not work "out of box".

Almad