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

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é <antonio.m...@gmail.com> wrote: > I get this when I run the query: SELECT * FROM pg_stat

Re: Connection limit exceeded for non-superusers

2009-10-09 Thread A Melé
| in 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é <antonio.m...@gmail.com> wrote: > I am using Django with PostgreSQL and everything was ok but in t

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

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 <kmtra...@gmail.com> wrote: > On Wed, Aug 19, 2009 at 6:47 PM, A Melé <antonio.m...@gmail.com> wrote: > > > Is there any way to perform an accent insensitive match when you are

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: Sending a list of items by email

2009-03-03 Thread A Melé
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, 12:52, Alfonso <allanhender...@gmail.com> wrote: >

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: ImageField, width_field, height_field not working

2009-02-03 Thread A Melé
, Andrew)) and I override the ImageFieldFile's save () method with custom code. That code doesn't get executed when saving the file with the admin when using rev.9766 and later revisions. Regards, Antonio Melé http://django.es/ On 24 ene, 03:21, Andrew Ingram <a...@andrewingram.net> wrote: >

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 <lssay...@gmail.com> wrote: > Ye

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

2009-01-07 Thread A Melé
ere: http://django.es/blog/traducir-la-documentacion-de-django-al-espanol/ Join us! :) Thank you. Regards, Antonio Melé --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

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 <donn.in...@gmail.com> wrote: >

appointments in admin, possible?

2006-08-31 Thread Antonio Melé
Lets see if someone has already dealt with this problem and can help me: I want to administer appointments in admin. I have two classes: === class Client(models.Model): name = models.CharField(maxlength=30) company = models.CharField(maxlength=50) class