On Wed, Mar 11, 2009 at 11:39 PM, Yuri Baburov <burc...@gmail.com> wrote:
> Maybe let's go a bit further towards pool of db connections and wrap a
> bunch of lines importing backend into some function that depends on
> engine argument?
> And later call it with settings.DATABASE_ENGINE to import default backend.
>
> http://code.djangoproject.com/browser/django/trunk/django/db/__init__.py?rev=10026
> Lines 12-38.

Yes, good idea, Yuri! It would be nice to encapsulate the logic of
loading the appropriate Django database backend class from
django.db.backends based on a given backend name.

I've created a ticket here:

    http://code.djangoproject.com/ticket/10487

If anybody (Alex?) wants to code up a patch, I'll get it in ASAP.

Adrian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to