Home > Blockchain >  Django server is not restarting
Django server is not restarting

Time:12-01

I'm using Django and after committing new edits I need to restart my server to see them. But every time after restart with python manage.py runserver my server is not loading I need to use another port to see my website

I`m using Pycharm and Debian terminal

I tried to reboot my pc and it helped but only for 1 time, I mean I can start my server by a default port but can't restart him again with the same port

CodePudding user response:

I found problem and solution for this All what you need its just to release your port with this command:

sudo fuser -k 8000/tcp

CodePudding user response:

you can run this command:

lsof -i:<portnumber>

To see if the port is being used, and what is using it.

  • Related