Starting up with Django. On Ubuntu 16.04, using python3.6. On a venv started a project and running the command to start webserver. Here is the output
$ python manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
January 03, 2019 - 14:06:57
Django version 2.1.4, using settings 'tictactoe.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
when I try to access the localhost. I get a connection refused error
$ curl -v http://127.0.0.1:8000/
* Trying 127.0.0.1...
* connect to 127.0.0.1 port 8000 failed: Connection refused
* Failed to connect to 127.0.0.1 port 8000: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 127.0.0.1 port 8000: Connection
refused
Found that the server isn't listening on port 8000 . Verified with netstat -an
Tried with different ports also with python manage.py runserver 0:8000
Didn't help.