M
M
Max2018-08-05 19:50:23
Django
Max, 2018-08-05 19:50:23

Django cms. The created server does not start. How to fix?

5b672a8240b4d974359026.png
127.0.0.1:8000 won't open. There were no mistakes

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2018-08-05
@jjsf

Of course, because django is running in a virtual machine and it has its own loopback interface there. And you're trying to connect to your machine's loopback interface.
Enter ip a and find out what IP the virtual machine has.
Run django with the command python manage.py runserver 0.0.0.0:8000
Connect using the IP of the virtual machine and port 8000

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question