title: How to lock a critical section in Django?
body: <p>I can't find a good clean way to lock a critical section in Django.  I could use a lock or semaphore but the python implementation is for threads only, so if the production server forks then those will not be respected.  Does anyone know of a way (I am thinking posix semaphores right now) to guarantee a lock across processes, or barring that a way to stop a Django server from forking.</p>