change_view to change ModelAdmin

2009-08-03 Thread akhen
Hi I'm using change_view(self, request, object_id, extra_context=None) override on a ModelAdmin object, to display field differently based on the object entries, and change the fieldset order. def change_view(self, request, object_id, extra_context=None): post = Post.objects.get(id=obj

newforms - FileInput

2007-01-02 Thread akhen
Hi there I'm trying to use FileInput widget in a Form: image = forms.Field(widget=forms.FileInput) But after a post, I just can get the filename not the data. form.clean_data['image'] Any ideas ? Thanks. --~--~-~--~~~---~--~~ You received this message becau

Re: Threading inside django process

2006-11-17 Thread akhen
Graham, You are right, this is usefull when you want to work on some objects that are inside the sgbd, but does not apply for in-memory object, like a cache for example. I really need to have my code running inside the django process, to see lives objects. Thanks. AkH. --~--~-~--~

Threading inside django process

2006-11-16 Thread akhen
Hi I have some questions regarding threading inside django, to know if I can run a a working thread (a thread running each minute, and perform some tasks with the django objects, could be update a view for example ) inside the running django/python/mod_python process ? Like what we can do inside