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 ?

Asked By: Bigbob556677

||

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.

Answered By: aircraft

Ctrl + C worked perfectly on PC

Answered By: Luka Gabadze

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

Answered By: Andrea Bergantin
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.