16
check the process id of python related to Django
ps -ef | grep python
kill -9 Process_id_no.
2
automatically with:
ps -ef|awk 'BEGIN{}{if(match($8, /python/))system("kill -9 " $2)}END{}'
- [Django]-AttributeError: 'SigSafeLogger' object has no attribute 'logger'
- [Django]-Postgres to Ubuntu Docker container linking not working
- [Django]-Any clue on this error with generic relation using Django Orm?
- [Django]-How to display multi-word app names properly (i.e. with spaces) in Django admin?
- [Django]-Django & Nginx deeplinking domains (re-write rules or django urls?)
1
Nohup.out is the log file from nohup.
What you want is: nohup python manage.py runserver
But nohup introduces it’s own issues, so I’d recommend you use Screen instead.
To use Screen: screen python manage.py runserver
once launched you can then disconnect from the session with <Control - D>
.
Then if you need to reconnect at some point you can with screen -x
.
- [Django]-Stop django from automatically unicodifing POST stuff
- [Django]-Posting complex data dictionary with request python
- [Django]-Query Limits and Order cannot work together in django
- [Django]-How can I do AND lookups with Q objects when using repeated arguments instead of chaining filters?
- [Django]-Use Django+Redis+Socket.io to build chat room, where to start?
Source:stackexchange.com