Connect refused in response to Django server

Working through the Django tutorial , I ran django-admin startproject mysite

. Now I can't get the next step to work.

$ python manage.py runserver

>>>
$

      

where the blank line is where it Ctrl-C

was entered to break the loop. >>>

is the hint I defined for virtualenv. In other words, no conclusion.

Most importantly, I get a denied error when connecting to http://127.0.0.1:8000

. I don't get the Welcome to Django page in nice light blue pastels like the tutorial described.

python manage.py

Works correctly for other teams . For example:

$ python manage.py check
System check identified no issues (0 silenced).

$ python manage.py shell --command 'import sys; print(sys.version)'
3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)]

$/ python manage.py shell --command 'import django; print(django.__version__)'
1.11.2

      

I am at a loss for how to research further. I tried:

  • Using multiple browsers
  • Change of IP and port, including usage LOCALHOST

    .
  • Disable proxy server
  • Advising another, for example here and here
  • Restarting my computer.
  • Examining Chrome Logs. Maybe someone can get something of value from these: Request Header and Timing Chart .

I am losing out for other steps to debug this issue.

+3


source to share


1 answer


Unless you have changed something in the settings.py you should inject the service in

local: 8000

Using the same computer where you run the server.



If you want to enter from another computer on the same network, you must use

$ python manage.py runserver 0.0.0.0:8000

      

And change your "allowed hosts" to the ip of your computer or to *

0


source







All Articles