Search code examples
pythondjangoporthostnetstat

Django/Python - Error: That port is already in use


I'm trying to host my Django website for the first time, but it appears that the port is already in use. I haven't hosted anything before and I get the following result with netstat -ntlp:

enter image description here

I would like to keep the standard port if possible... does anyone know a solution? I'm not sudo user.


Solution

  • If you can't kill the process because you don't have permissions, just serve django in a different port:

    python manage.py runserver 8001