I set up my first django server using python manage.py runserver 0.0.0.0:8000
command. Why is google chrome not loading localhost:8000/
for me even though Microsoft edge is?
Asked
Active
Viewed 1,583 times
2

Josh Wright
- 2,495
- 16
- 20

siddarth shankar
- 21
- 2
-
1Have you tried copying and pasting the address that shows in the terminal when you start the server, e.g., `Starting development server at http://127.0.0.1:8000/`. Maybe you are not adding the `http://` and it is not getting added automatically? – elethan Oct 24 '16 at 13:47
-
Other useful pieces of info: 1) What version of django are you running? 2) What do you see in the window after running the command? It should look something like: Performing system checks... System check identified no issues (0 silenced). October 20, 2016 - 17:24:46 Django version 1.8.15, using settings 'MyProj.settings' Starting development server at http://0.0.0.0:8000/ Quit the server with CONTROL-C. – Robert Townley Oct 24 '16 at 15:00
1 Answers
-1
I found a solution to this problem.
in your local settings file add the following line:
ALLOWED_HOSTS = ['0.0.0.0', ]
Then you can access it by going to
0.0.0.0:8000

Tony
- 2,382
- 7
- 32
- 51