Change "Quit the server with CTRL-BREAK."
Question:
Is there a way in one of the Django scripts to change the CTRL+BREAK exit command to something else when using python manage.py runserver
?
Answers:
You can use ps
and grep
to find the process:
ps aux | grep runserver
then kill it by:
kill the_pid
I mean you can write this to a shell script, then invoke it.
Ctrl + C worked perfectly on PC
unluckily for me it doesn’t work. i tried:
ctrl + fn + b
ctrl + fn + c
ctrl + fn + pause(F5)
ctrl + c
neeh help to end my server without re-opening the terminal which is connected to anaconda
Is there a way in one of the Django scripts to change the CTRL+BREAK exit command to something else when using python manage.py runserver
?
You can use ps
and grep
to find the process:
ps aux | grep runserver
then kill it by:
kill the_pid
I mean you can write this to a shell script, then invoke it.
Ctrl + C worked perfectly on PC
unluckily for me it doesn’t work. i tried:
ctrl + fn + b
ctrl + fn + c
ctrl + fn + pause(F5)
ctrl + c
neeh help to end my server without re-opening the terminal which is connected to anaconda