Re: new syntax for management commands

2012-08-13 Thread Russell Keith-Magee
On Mon, Aug 13, 2012 at 8:33 PM, Melvyn Sopacua wrote: > On 13-8-2012 1:54, Alex Gaynor wrote: > >> In my view, the current largest source of boilerplate with management >> commands is where they have to be, you have to stick them 3 directories >> deep. Writing a command itself is pretty boilerpl

Re: #16455 PostGIS 2.0 support

2012-08-13 Thread Anssi Kääriäinen
On 10 elo, 20:12, Jeremy Dunck wrote: > That sounds good to me, though I'm not a committer on the tree as far > as I know.   Anssi? I can take care of the patch. As said earlier I don't understand GIS well, but based on the discussions I have no doubt about the patch. So, I will try to get this c

Re: #18557: get_or_create() causes a race condition with MySQL

2012-08-13 Thread Anssi Kääriäinen
On 12 elo, 18:41, "Cal Leeming [Simplicity Media Ltd]" wrote: > *C) Execute a commit before each get_or_create() call* > > It is worth noting that committing the transaction prior to calling > get_or_create() has given our apps a 100% success rate in preventing this > race condition, where as prev

Re: new syntax for management commands

2012-08-13 Thread Melvyn Sopacua
On 13-8-2012 1:54, Alex Gaynor wrote: > In my view, the current largest source of boilerplate with management > commands is where they have to be, you have to stick them 3 directories > deep. Writing a command itself is pretty boilerplate free. Ironically, this is easily fixed with a createcomma

setlang and translated url patterns

2012-08-13 Thread Michel Thadeu Sabchuk
Hi guys, I'm doing a site in english and portuguese and a cool thing I'm using is translated urls. The only problem is that changing the language through django.views.i18n.set_language fails because it try to redirect to the HTTP_REFERER and I didn't see how to set the proper next value so the