On 5 mars 2013, at 23:13, Aymeric Augustin <aymeric.augus...@polytechnique.org> 
wrote:

> For lack of a better idea, I'm considering deprecating the middleware and 
> replacing it with a setting. This doesn't qualify as loose coupling; better 
> ideas welcome!


Jacob just suggested on IRC using a WSGI middleware. It's two lines of code:

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

for db in ('default', 'other'):
    application = atomic(using=db)(application)

I'm leaning towards simply documenting that.

-- 
Aymeric.



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


Reply via email to