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. --~--~-~--~

Re: Threading inside django process

2006-11-17 Thread graham_king
akhen, I tend to use a cron job. That runs a small shell script which sets PYTHONPATH and DJANGO_SETTINGS_MODULE and runs the Python script. In there you import your models and do whetever you need to do really. Regards, Graham. --~--~-~--~~~---~--~~ You rec

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