Re: processor for file fields

2005-08-09 Thread [EMAIL PROTECTED]
Nothing like answering your own question: http://www.djangoproject.com/documentation/models/save_delete_hooks/ looks like that will do what I want --B

processor for file fields

2005-08-09 Thread [EMAIL PROTECTED]
I'm not sure if this is possible, so I figured I'd ask before reinventing the wheel 8) I'm working on a project where I will upload 2 files as FileFields: an mp3 and an openoffice document. After these are uploaded I want them both processed in different ways. My question: Is there a hook alrea

Re: expressions in templates?

2005-08-09 Thread Adrian Holovaty
On 8/9/05, xtian <[EMAIL PROTECTED]> wrote: > {% for choice in poll.get_choice_list(order_by=['-votes']) %} > > doesn't work - obviously the for tag isn't expecting arbitrary > expressions, despite looking like the Python for loop. > > Is there a better way to handle this kind of thing? Have you

expressions in templates?

2005-08-09 Thread xtian
Is there any way to have Python expressions in a Django template? For example, something simple that occurred to me in the polls example (while following tutorial 4 in the results view) was to order the choices by descending votes. I could see how to do this in the view by injecting ordered_choic

List of deprecated things and backwards-incompatible changes

2005-08-09 Thread Adrian Holovaty
I've created a wiki page that collects all deprecated features and backwards-incompatible changes in preparation for Django's first release: http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges >From the page: """ As Django is still in pre-release mode, we haven't yet committed to ma

new python debugger

2005-08-09 Thread mrelectron
hi: Nir Aides who wrote the rpdb debugger has enhanced it and stuck a frontend on it whoo-hoo. it is fantastico! see and download it at http://www.digitalpeers.com/pythondebugger/docs.htm cheers mark