Re: [Choose Database based on geolocalization]

2015-03-09 Thread 'Petros Moisiadis' via Django users
On 03/09/2015 01:58 AM, Russell Keith-Magee wrote: > Yes, DB Routers support hints. How are you planning to inject those > hints into the router? Router arguments aren't exposed to the end user > when you do a query - they're automatically generated by the query, > and only include details about

Re: [Choose Database based on geolocalization]

2015-03-08 Thread 'Petros Moisiadis' via Django users
On 03/08/2015 01:42 AM, Russell Keith-Magee wrote: > Hi Xina, > > The short answer is "not easily, and not within Django". > > Django's DB Routers don't contain any detail about the request, so > there's no ability to geolocated the requesting IP for routing > purposes. For the record, this is

Re: Optimizing admin change view with inlines

2014-12-29 Thread 'Petros Moisiadis' via Django users
ote: > > On 12/24/14 13:30, 'Petros Moisiadis' via Django users wrote: > > On 12/23/14 19:13, 'Petros Moisiadis' via Django users wrote: > >> Hello people :) > >> > >> I am struggling with optimizing an admin with inlines which > c

Re: Optimizing admin change view with inlines

2014-12-24 Thread 'Petros Moisiadis' via Django users
On 12/24/14 13:30, 'Petros Moisiadis' via Django users wrote: > On 12/23/14 19:13, 'Petros Moisiadis' via Django users wrote: >> Hello people :) >> >> I am struggling with optimizing an admin with inlines which causes too >> many database requests. >&

Re: Optimizing admin change view with inlines

2014-12-24 Thread 'Petros Moisiadis' via Django users
On 12/23/14 19:13, 'Petros Moisiadis' via Django users wrote: > Hello people :) > > I am struggling with optimizing an admin with inlines which causes too > many database requests. > > My model structure is like this: > > class ExampleA(models.Model): > ...

Optimizing admin change view with inlines

2014-12-23 Thread 'Petros Moisiadis' via Django users
Hello people :) I am struggling with optimizing an admin with inlines which causes too many database requests. My model structure is like this: class ExampleA(models.Model): ... class ExampleB(models.Model): aexample = models.ForeignKey('ExampleA',