Database router with read replica

2017-08-30 Thread Matt Pegler
I'm hoping for some advice on how to utilize read replica databases with Django. I searched the django-users archive but didn't find much discussion about this. I also can't find many blog posts or discussion elsewhere. Do people have experience or general advice on using read replicas with Djan

Re: Middleware manipulating template in response

2012-08-09 Thread Matt Pegler
It sounds like you want to automagically do something like: if request.is_mobile: return render_to_response('test_mobile.html',{}) return render_to_response('test.html',{}) I'm not sure that will be possible without modifying your views. I did something similar by determining which base templ