About Stopping Any Django Development Web Servers

To stop any Django development web server running on the standard port execute:

1
$ kill $(lsof -t -i:8000)

You can use this in bash or zsh scripts that you can execute to automate your workflows.

Tips and Tricks Dev Ops Django 4.2 Django 3.2 Django 2.2 Bash Zsh