How to view django homepage outside my server

I just installed django with python 2.7. After creating an intinental project, he says to check on

http://127.0.0.1:8000/

But this is my VPS server, and I cannot open the browser there.

I tried http://vpsIPaddress:8000, but it did not work

+5
source share
3 answers

When you start your server in development mode, it is ONLY available through localhost/ 127.0.0.1. However, if you have a port conflict, you can change the port that it uses:

python manage.py runserver 12345

And then you can access the development server through:

http://127.0.0.1:12345

, , , . Django , - Apache2 mod_wsgi.

+1

:

python manage.py runserver 0.0.0.0:12345

dev IP- , :)

+11

python. , nginx. - , ,

python manage.py runserver example.com:8000

IP- . . .

0

All Articles