I am currently using psutil to do...
p = psutil.Process(pid)
p.kill()
...In an attempt to kill the process of one function (that I thought I was getting the pid of with):
os.getpid()
...Though this kills my entire manage.py runserver command and I have to restart the server.
Does anyone know what I can do here?