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:
>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
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
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
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
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
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!
--~--~-~--~~-
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
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
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
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 |
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-
12 matches
Mail list logo