Re: FileSystemStorage content vs PIL Image - **Initial solution**

2009-01-05 Thread A Melé
Donn, take a look at django-thumbs source code, it integrates PIL and SotrageBackend: http://code.google.com/p/django-thumbs/source/browse/trunk/thumbs.py I hope the code helps you. Regards, Antonio Melé http://django.es/blog/ On 5 ene, 13:30, Donn wrote: > On Monday, 05 January 2009 14:00:

Upcoming on-line Spanish translation sprint: Friday, Jan. 9, 2009

2009-01-07 Thread A Melé
>From Friday, Jan. 9 to Sunday, Jan. 11, 2009 the Spanish Django community is going to hold an on-line translation sprint. The main purpose of this sprint is to translate the most important parts of the Django documentation into Spanish. After that the Spanish documentation will be available in th

Re: Multiple images in form

2009-01-22 Thread A Melé
DragonSlayre, django-thumbs fields act exactly the same way as any ImageField (the inherit from ImageFIeld), so they can be blank and null. That shouldn't be a problem. Regards, Antonio Melé http://django.es/blog/ On 20 ene, 19:21, DragonSlayre wrote: > Yeah, I had to add a related_name to m

Re: ImageField, width_field, height_field not working

2009-02-03 Thread A Melé
It seems that after rev. 9766 ImageFieldFile's save() method (where it sets values for height_field and width_field) is bypassed when saving the file (at least with the admin). I use FieldFiles that inherit from ImageFieldFile (for example in django-thumbs code (thanks for reporting the issue, And

Adding new attributes to objects in a query_set in custom Manager

2009-03-03 Thread A Melé
in self.get_query_set(): song.new_attribute = c.generate_url(expires_in=1, key=song.mp3.name, method="GET") return self.get_query_set() In the template {{ song.new_attribute }} returns nothing at all. Any ideas how to do this? Thank yo

Re: Sending a list of items by email

2009-03-03 Thread A Melé
dy = '' for item in order_list: body += '%s: %s' % (item.attribute1, item.attribute2) email = EmailMessage( 'New Customer Order: %s ' % customer, body, to = ['email'] ) email.send() I hope that helps you. A Melé http://django.es On 3 mar, 1

Accent-insensitive queryset filter

2009-08-19 Thread A Melé
Is there any way to perform an accent insensitive match when you are filtering a queryset? I'm looking for something like iexact (http:// docs.djangoproject.com/en/dev/ref/models/querysets/#iexact) but accent- insensitive. Is there any simple way to do it? Thank you! --~--~-~--~~-

Re: Accent-insensitive queryset filter

2009-08-20 Thread A Melé
PostgreSQL. It seems that it is accent-sensitive by default. On 20 ago, 03:57, Karen Tracey wrote: > On Wed, Aug 19, 2009 at 6:47 PM, A Melé wrote: > > > Is there any way to perform an accent insensitive match when you are > > filtering a queryset? I'm looking for some

Connection limit exceeded for non-superusers

2009-10-09 Thread A Melé
I am using Django with PostgreSQL and everything was ok but in the last weeks I get this error sometimes when loading my sites. I didn't make any changes to the database configuration so I don't know why it doesn't work sometimes. Anybody knows how to solve this? Is Django keeping db connections o

Re: Connection limit exceeded for non-superusers

2009-10-09 Thread A Melé
transaction | f | 2009-09-30 15:00:01.85973-05 | 2009-09-30 15:00:54.566471-05 | 2009-09-30 15:00:01.858281-05 | | -1 and 93 more rows! On 9 oct, 12:27, A Melé wrote: > I am using Django with PostgreSQL and everything was ok but in the > last weeks I get this

Re: Connection limit exceeded for non-superusers

2009-10-11 Thread A Melé
Looking at the postgresql log I can see it's probably the connection hasn't been closed: LOG: unexpected EOF on client connection Any ideas on this? Thank you. On 9 oct, 12:34, A Melé wrote: > I get this when I run the query: SELECT * FROM pg_stat_activity > >  datid |

Django docs - how to build json docs with sphinx

2010-02-14 Thread A Melé
I'm trying to use djangodocs: http://code.djangoproject.com/browser/djangoproject.com/djangodocs . I see it requires documentation to be in .fjson format. So I have tried to build the django docs with sphinx: sphinx-build -b json . _build/json But I get this error: File "/usr/lib/python2.5/site-