Re: Function caching

2006-05-23 Thread tnleeuw
Elver Loho wrote: > Can Django's caching framework somehow be used to cache the output of > any function? > [...] > > Does Django offer any decorators for caching the output of any > function, such as get_latest_books, based on the arguments passed to > it? > [...] Such decorators already exist.

Re: DB Error: String value is not quoted

2006-02-05 Thread tnleeuw
Hi Adrian, Thanks for the tip; both my problems seem to be solved by using encode('UTF-8'). Cheers, --Tim

DB Error: String value is not quoted

2006-02-03 Thread tnleeuw
Hi, I'm developing my first Django app (a photoalbum-app) and ran into a problem with the database. Besides the unicode-problem mentioned in another post, I have a problem where it seems 1 directory-name, 'NEW', seems to confuse the system. It might be a problem with PsycoPG... perhaps with Djan

Problems with unicode strings and database

2006-02-03 Thread tnleeuw
I'm working on my first Django app (a photoalbum) and ran across a problem with Unicode filenames (on windows XP). I'm storing directory names in a database. At first I was reading the directory-names as plain strings, and all was well. Then I ran across a file that was in some strange (cyrillic)