Often, when restarting Django runserver, if I use the same port number, I get a ‘port is already in use’ message. Subsequently, I need to increment the port number each time to avoid this.
It’s not the case on all servers, however, so I’m wondering how I might achieve this on the current system that I’m working on?
BTW, the platform is Ubuntu 8.10
You’re getting that message because the server is already running (possibly in the background). Make sure to kill the process (bring it to the foreground and press ctrl-c) to stop the process.