Re: Location of temporary file writes in Django production mode

2012-01-09 Thread Anler
Hi, it seems to be something with Python-PYx and writing permissions, I google it and find this: http://permalink.gmane.org/gmane.comp.python.pyx.users/347 check it out -- Anler Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Sunday, January 8, 2012 at 8:32 PM, wilbur wrote

Re: Joining Tables

2012-01-08 Thread Anler
Oh sorry, it should be this: photos = Photos.objects.filter(user__groups__id=the_group_id) -- Anler Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Sunday, January 8, 2012 at 12:04 PM, Anler wrote: > Swaroop I think this is what you're asking for: >

Re: Joining Tables

2012-01-08 Thread Anler
Swaroop I think this is what you're asking for: photos = Photos.objects.filter(user__groups__name='admin') -- Anler Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Sunday, January 8, 2012 at 11:42 AM, Jonas Geiregat wrote: > > > > Thanks Jonas, the

Re: Bulk import of data

2011-11-28 Thread Anler Hernandez Peral
s of memory and crashing my site so I ended up slicing each file in smaller chunks. Again, this is a very specific need, but in case you find yourself in such situation, here's my base code from which you can extend ;) https://gist.github.com/1dc28cd496d52ad67b29 -- anler On Sun, Nov 27, 2011 at