Re: Problems with multithreading in fastcgi environment

2009-02-15 Thread Jacob Rigby
The queue solution that Malcolm is talking about requires 3 types of processes as far as I can tell: - the fcgi/django processes that will be pushing jobs onto the queue - a manager process that is started independently from the fcgi processes and is responsible for maintaining the shared

Re: Processing a file...

2009-02-13 Thread Jacob Rigby
The testserver is single threaded (assuming you're using django- admin.py runserver), so it would appear to hang until the os.popen call completes. If it's really crashing, then something horrible must be going wrong with the child process. In a production setting, where you're using a multiproc

Can I prevent admin from listing related objects on delete confirmation page?

2008-12-10 Thread Jacob Rigby
I have a Survey object that relates to many Response objects (say from 100 - 1000) If I delete the Survey in the Admin page using the django development server, the delete confirmation page loads after a few minutes. I could almost live with that. But under lighttpd my connection just times out

How to add custom validation to inline admin forms, overriding clean(self) or clean_FIELD(self) doesn't work.

2008-10-23 Thread Jacob Rigby
I have a custom ModelForm with a TabularInline child form. I can edit and save without problems, and simple field validation is working (if a required field is missing from the inline form it shows a warning). But when I try to add custom validation methods to the inline form (in the same way I w

Re: Where can a save confirmation page be hooked into the admin? (similar to delete confirmation)

2008-09-22 Thread Jacob Rigby
odelAdmin class and how to override certain   > parts of it such as the save_model, change_view and add_view methods. > > Hope that helps. > > Erik > > On 22.09.2008, at 13:08, Jacob Rigby wrote: > > > > > I want to emulate the delete confirmation page behavio

Where can a save confirmation page be hooked into the admin? (similar to delete confirmation)

2008-09-22 Thread Jacob Rigby
I want to emulate the delete confirmation page behavior before saving certain models in the admin. In my case if I change one object, certain others should be deleted as they depend upon the object's now out-of-date state. I understand where to implement the actual cascaded updates (inside the p