Re: Django 1.8b2: m2m signal raising ProtectedError now affects unrelated queries inside tests

2015-03-12 Thread Peter Schmidt
Thanks Florian. On Friday, March 13, 2015 at 2:34:46 AM UTC+11, Florian Apolloner wrote: > > Hi Peter, > > On Thursday, March 12, 2015 at 11:26:21 AM UTC+1, Peter Schmidt wrote: >> >> I think it's related to this documented change: >> >> https://d

Django 1.8b2: m2m signal raising ProtectedError now affects unrelated queries inside tests

2015-03-12 Thread Peter Schmidt
I'm trying out Django 1.8b2, and am getting close to getting our main project's test suite passing. However I've run into this behaviour and I'm just curious whether anyone else has experienced it or has any thoughts. TransactionManagementError: An error occurred in the current transaction. >

Re: Python Multiprocessing With Django

2012-12-16 Thread Peter Schmidt
Just in case someone else stumbles across this old thread. TLDR: The recipe may be able to be improved - I only needed to close the connection in the parent Python process, not in the child process. -- Best guess hypothesis as to what's going on is when you fork a process, the OS (e.g. OSX Moun