How to handle concurrent modifications in django?
<p>I am trying to build a project(like e-commerce) using Django and integrate it with android. (I am not building website, I am trying mobile only, so I am using <em>django-rest-framework</em> to create api)</p>

<p>So my question is how to handle a case where two or more users can book an item at the same time when there is only a single item. (basically how to handle concurrent modification and access of data) ?</p>

<p>Please help. I am stuck on this one.</p>

<p><code>django-locking</code> is the way to go.</p>

python django django-models django-rest-framework