RE: Using AJAX to deal with slow views

2006-06-03 Thread Leeuw van der, Tim
Hi, WebSphere application server, from IBM, has a similar problem. Their solution is to continuously send output, with current progress. Their 'view' which does this is so configured, that the HTTP Response starts sending the response immediately, not waiting for the response to be complete. I d

RE: How to use non English characters in templates

2006-02-07 Thread Leeuw van der, Tim
Another shot in the dark: Do your html headers specify the right encoding? --Tim -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roberto Aguilar Sent: dinsdag 7 februari 2006 18:46 To: django-users@googlegroups.com Subject: Re: How to use non

RE: How to find the label for a value

2006-02-13 Thread Leeuw van der, Tim
The choices for the form are specified in your model. Django uses these choices for it's form-display. It would make sense to me if Django would also provide an easy way for you to display such 'nice' values in your interface. The set of choices that you provide is accessible via the model; if yo

RE: How to find the label for a value

2006-02-13 Thread Leeuw van der, Tim
!   --Tim   From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amit Upadhyay Sent: maandag 13 februari 2006 11:53 To: django-users@googlegroups.com Subject: Re: How to find the label for a value   On 2/13/06, Leeuw van der, Tim <[EMAIL PROTECTED]>

How to customize display of radio-button group?

2006-02-14 Thread Leeuw van der, Tim
I have a field in my model that is entered, in a form, using a group of radio-buttons. However, I don’t like the display of those radio-buttons: I want them side by side, rather than as a bulleted-list below each other.   Is that possible? How would I achieve that? (Except for custom-codi

RE: How to pass a variable as parameter to a tag

2006-02-16 Thread Leeuw van der, Tim
But isn't the idea that you can use the parameter passed as name of key to lookup in context? Then you can pass parameter to tag. --Tim -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of limodou Sent: woensdag 15 februari 2006 8:52 To: django-us

RE: How to pass a variable as parameter to a tag

2006-02-17 Thread Leeuw van der, Tim
februari 2006 11:10 To: django-users@googlegroups.com Subject: Re: How to pass a variable as parameter to a tag On 2/16/06, Leeuw van der, Tim <[EMAIL PROTECTED]> wrote: > > But isn't the idea that you can use the parameter passed as name of key > to lookup in context? Then you can p

RE: django-admin.py sqlall doesn't include indexes?

2006-02-17 Thread Leeuw van der, Tim
I agree! I'd like to know this as well; currently I created a small shell-script to create DDL scripts from sqlall + sqlindexes. Cheers, --Tim -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: vrijdag 17 februari 2006 0

RE: Django in a Load-Balanced environment (ORM issues) ...

2006-03-01 Thread Leeuw van der, Tim
They way I would enivsage adding this functionality to Django would be that in your model you specify, for each Model object (=table), that it is to be versioned. Versioning would automatically add a '_version' column to the generated DDL, and the standard Django save() routines would take care of

RE: Django in a Load-Balanced environment (ORM issues) ...

2006-03-05 Thread Leeuw van der, Tim
Hi, I think both are a form of 'optimistic locking' but I do think that adding a version-column should give better performance, because the WHERE-clause is simplified a lot, not having a potentially large number of expensive string-comparisons (and the data-caching form might give problems with C

Django on Windows?

2006-03-10 Thread Leeuw van der, Tim
Hi,   What is the recommended way of running Django on a Windows server?   I’ve developed a small web-application with Django, for home-use only, and I want to run it on one of my PC’s – which runs Windows.   So yesterday I did the first test with Django, Apache, mod_python and my app

RE: Django on Windows?

2006-03-10 Thread Leeuw van der, Tim
PS: I just upgraded mod_python to 3.2.8 but no change. Still crashes about 6 times doing those 39 requests for the front page.   --Tim   From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Leeuw van der, Tim Sent: vrijdag 10 maart 2006 9:16

RE: Adding new properties post sql build

2006-03-13 Thread Leeuw van der, Tim
Consider adding an extra table, 'item_type_extra_properties' or something like that, used to store all those types of properties which are not yet known at design-time. --Tim -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Tredinnick

RE: IDE/Dev workflow question

2006-03-13 Thread Leeuw van der, Tim
Hi, You could look into an IDE like Eclipse, together with the PyDEV eclipse plugin. I use this combination to develop for Django. (There are some gotchas with code-completion; in some ways the code-completion of PythonWin works better in combination with the magic of Django models.) Why I woul

RE: Integrity Error, regarding NULL values

2006-03-13 Thread Leeuw van der, Tim
'blank=True' is not the same as 'null=True' ! Specify 'null=True' and null-values should be allowed on the column (you should see that in de generated DDL, the clause 'NOT NULL' disappears from the specs for this column) That said, your RDBMS might still require you to fill in your foreign keys,

RE: Django on Windows?

2006-03-13 Thread Leeuw van der, Tim
ers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Sagalaev Sent: vrijdag 10 maart 2006 9:35 To: django-users@googlegroups.com Subject: Re: Django on Windows? Leeuw van der, Tim wrote: > The application is a photo-album like application which stores > directory and image in

RE: Django on Windows?

2006-03-13 Thread Leeuw van der, Tim
e- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Sagalaev Sent: dinsdag 14 maart 2006 7:29 To: django-users@googlegroups.com Subject: Re: Django on Windows? Leeuw van der, Tim wrote: >Hi Ivan, > >Thanks for your fast answer. I didn't get round to tryi

RE: Django on Windows?

2006-03-14 Thread Leeuw van der, Tim
That patch I had already applied - thanks! :) --Tim -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Sagalaev Sent: dinsdag 14 maart 2006 7:47 To: django-users@googlegroups.com Subject: Re: Django on Windows? Leeuw van der, Tim wrote

RE: Eclipse based Django IDE???

2006-03-16 Thread Leeuw van der, Tim
Hi Todd, I hadn't realized that the command would take over Eclipse, which is not what you want in case of the 'runserver' command! For 'runserver' you can perhaps define a small batchfile or shellscript, that starts 'manage.py' and that is available as a shortcut from the (windows) start-menu or

RE: Fate of 0.91 projects

2006-04-14 Thread Leeuw van der, Tim
I fully agree with this: a 0.92 made of trunk, with all fixes collected on trunk. Perhaps patches applied for concurrency/threading issues and memory leaks -- that would be great for stability, esp. on windows. Then instantly switch trunk to m-r, and if m-r is good enough, make a release of it. C

RE: MySQL Query cache hits stay zero

2006-04-21 Thread Leeuw van der, Tim
Hi BeeGee, My impression is that your first statement is correct, but not your second: To use the query-cache with MySQL, you either need to use MyISAM tables, or if you use InnoDB tables and transactions, then you need to use at least MySQL version 4.1.1 This is not related to Django. -Or