Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I view django home page outside my server

Tags:

python

django

I have just installed django with python 2.7. After creating intitial project it says to check at

http://127.0.0.1:8000/

But that is my VPS server and i can't open browser there.

i tried http://vpsIPaddress:8000 but it didn't worked

like image 694
Mirage Avatar asked May 24 '11 11:05

Mirage


1 Answers

You can start your server with following command:

python manage.py runserver 0.0.0.0:12345

Then, the dev server will bind all the possible ip address on your server which is a convenient way for test :)

like image 79
xiao 啸 Avatar answered Nov 03 '22 20:11

xiao 啸