Re: Aggregation branch fails with GIS models.

2008-12-28 Thread Russell Keith-Magee
On Sun, Dec 28, 2008 at 7:29 AM, Justin Bronn wrote: > > Ariel, > >> Is it a gis issue or an aggregation one? > > As I indicated in private correspondence, this was a matter of > updating GeoQuery.get_columns to reflect Russell's aggregation > changes. I've attached to #3566 a patch for Russell'

Re: Multi Database use with statement

2008-12-28 Thread Ludvig Ericson
On Dec 27, 2008, at 12:23, wei guangjing wrote: > from __future__ import with_statement > from django.contrib.auth.models import User > from django.db import using > > with using('db1'): >print User.objects.count() # db1 user count >with using('db2'): >print User.objects.count() #

Re: Using domain in urls.py

2008-12-28 Thread Tom Smith
I did this with some middleware having lots of sub-domains, red.whatever.com, yellow.whatever.com etc... but I forget what it was/is called. It's probably on Django snippets. This looks like it might help... http://eikke.com/django-domain-redirect-middleware/ --~--~-~--~~