Thread synchronization

2012-01-03 Thread Etam
How do you synchronize threads in forked processes? Thanks, Etam. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/CmmZ4EO_dCYJ. To post to

Odp: Re: Synchronize method or model field access

2011-05-30 Thread Etam
Is there a way to run Django (mod_wsgi) in threaded mode? > I would push the atomic updates to the database or use a queue with a > single worker. Thread level locking doesn't scale across processes or > servers. > > -- You received this message because you are subscribed to the Google Groups

Odp: Re: Synchronize method or model field access

2011-05-30 Thread Etam
Thanks! Celery provides a queue you could use: > > http://ask.github.com/celery/getting-started/introduction.html > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscri

Synchronize method or model field access

2011-05-24 Thread Etam
Hi, how do you synchronize a method (or model field access) in Django? It doesn't work: from multiprocessing import Lock change_status_lock = Lock() def change_status(self, status): self.change_status_lock.acquire() ... self.change_status_lock.release() Thanks in advance,

Django mod_wsgi PicklingError while saving object

2010-07-21 Thread Etam
els.ForeignKey(Company, related_name = 'company_order', blank = True, null = True) I think the reason is: price = models.DecimalField(max_digits = 10, decimal_places = 2) Thanks in advance, Etam. -- You received this message because you are subscribed to the Google Groups