Port is already in use // 1 second guide 🐝

Pycharm in particular likes fetching Django console spontaneously (while I’m copy-and-pasting things in project tree). After runserver:

Performing system checks...

System check identified no issues (0 silenced).
July 09, 2019 - 15:45:49
Django version 2.0, using settings 'project.settings'
Starting development server at
Quit the server with CONTROL-C.
Error: That port is already in use.

For some reason port 8000 is already in use? Just use this:

sudo kill 'sudo lsof -t -i:8000'

Just annoying.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.