(Re)Using Django Models in eventlet environment

70 views
Skip to first unread message

ty...@monkeypox.org

unread,
Nov 3, 2009, 7:40:02 PM11/3/09
to django...@googlegroups.com
Howdy folks, I'm working on some backend services using eventlet[0] and I would
like to re-use my Django models code, doing so "out of the box" is proving more
difficult than I had hoped.

In order to prevent blocking coroutines, I believe I need to find some way to
smuggle a cursor coming from the eventlet ConnectionPool[1] into django.models,
but past over-writing django.db.connect, I can't find a "clean" means of doing
so.

Any advice? (Here's hoping donovan's lurking around here :))


Cheers,
-R. Tyler Ballance
--------------------------------------
GitHub: http://github.com/rtyler
Twitter: http://twitter.com/agentdero
Blog: http://unethicalblogger.com


[0] http://eventlet.net
[1] http://eventlet.net/doc/modules/db_pool.html

ty...@monkeypox.org

unread,
Nov 4, 2009, 4:09:02 PM11/4/09
to django...@googlegroups.com

On Tue, 03 Nov 2009, ty...@monkeypox.org wrote:

> Howdy folks, I'm working on some backend services using eventlet[0] and I would
> like to re-use my Django models code, doing so "out of the box" is proving more
> difficult than I had hoped.
>
> In order to prevent blocking coroutines, I believe I need to find some way to
> smuggle a cursor coming from the eventlet ConnectionPool[1] into django.models,
> but past over-writing django.db.connect, I can't find a "clean" means of doing
> so.
>
> Any advice? (Here's hoping donovan's lurking around here :))


For what it's worth, resolved this issue on the eventlet mailing list per this
post: https://lists.secondlife.com/pipermail/eventletdev/2009-November/000584.html

Reply all
Reply to author
Forward
0 new messages