Re: ANN: PyMySQL 0.3

2010-09-30 Thread Andy
Great! Thank you very much. On Sep 29, 6:56 pm, Bo Shi wrote: > The following patch to your application's manage.py will allow you to > use pymysql without patching Django. > >  #!/usr/bin/env python > +try: > +    import pymysql > +    pymysql.install_as_MySQLdb() > +except ImportError: > +    

Re: ANN: PyMySQL 0.3

2010-09-29 Thread Bo Shi
The following patch to your application's manage.py will allow you to use pymysql without patching Django. #!/usr/bin/env python +try: +import pymysql +pymysql.install_as_MySQLdb() +except ImportError: +pass + On Sep 10, 12:25 pm, Andy wrote: > On Sep 10, 11:18 am, Andy Dustman wro

Re: ANN: PyMySQL 0.3

2010-09-10 Thread Andy
On Sep 10, 11:18 am, Andy Dustman wrote: > Uh, no. > > MySQLdb releases the GIL on any blocking call, so other threads can run. > > Django is *not* asynchronous. It's threaded. The default Django behavior is threaded. But it can be made to run in async mode, where socket communication doesn't b

Re: ANN: PyMySQL 0.3

2010-09-10 Thread Andy Dustman
On Sun, Sep 5, 2010 at 12:48 AM, Andy wrote: > Thanks Pete. > > I'm definitely interested in using PyMySQL for production. > > I'm interested in running Django in an async mode using gevent (http:// > www.gevent.org/). gevent provides a money patch that turns any Python > code into non-blocking. T

Re: ANN: PyMySQL 0.3

2010-09-05 Thread Andy
On Sep 5, 5:29 am, Daniel Roseman wrote: > If I get some time I'll try and work up an example. Please do Daniel. That'd really help. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegro

Re: ANN: PyMySQL 0.3

2010-09-05 Thread Daniel Roseman
On Sep 4, 9:58 pm, Pete Hunt wrote: > Hi Andy - > > Below is a patch that will let Django use pymysql if MySQLdb is not > available. Currently it is not in use in production anywhere but I am > hoping to change that soon. Currently its primary use is prototyping > applications that are being devel

Re: ANN: PyMySQL 0.3

2010-09-04 Thread Andy
Thanks Pete. I'm definitely interested in using PyMySQL for production. I'm interested in running Django in an async mode using gevent (http:// www.gevent.org/). gevent provides a money patch that turns any Python code into non-blocking. The problem is that MySQLdb is written in C, so it'd still

Re: ANN: PyMySQL 0.3

2010-09-04 Thread Pete Hunt
Hi Andy - Below is a patch that will let Django use pymysql if MySQLdb is not available. Currently it is not in use in production anywhere but I am hoping to change that soon. Currently its primary use is prototyping applications that are being developed on Mac OSX but deployed on Linux. If you ar

Re: ANN: PyMySQL 0.3

2010-09-03 Thread Andy
Pete, Would you recommend PyMySQL for production use? Which parts of Django do I need to modify in order to use it with PyMySQL instead of MySQLdb? Thanks. On Sep 3, 2:07 pm, Pete Hunt wrote: > I’m proud to announce the release of PyMySQL 0.3. For those of you > unfamiliar with PyMySQL, it is

ANN: PyMySQL 0.3

2010-09-03 Thread Pete Hunt
I’m proud to announce the release of PyMySQL 0.3. For those of you unfamiliar with PyMySQL, it is a pure-Python drop-in replacement for MySQLdb with an emphasis on compatibility with MySQLdb and for various Python implementations. I started working on the project due to my frustrations stemming fro