you can use nohup and store the PID in a file when you start the server:
nohup python manage.py runserver 0.0.0.0:8000 & echo $! > django_server.pid
To continuously display the content of the nohup.out file in real-time
tail -f nohup.out
To stop the server later, you can use:
kill $(cat django_server.pid)
You can find the PID of the Django server by using the ps or pgrep command. For example:
ps aux | grep runserve