How to create a thread safe method in django
It depends on how you deploy Django app. See Gunicorn or Uwsgi. Usually, there is a pool of processes.
Maybe db transaction could help you.
I am using django 1.10.2 with python 3.5.2 in a Linux machine.
I have 2 questions that are related:

What is spawn when a client connect to django? Is it a new thread for every client or a new process for every client?
I need to have a method in django that must only be accessed by the client one at a time. Basically this must be a thread safe method with perhaps a lock mechanism. How do I accomplish this in django.

Thanks in advance!