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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you start your server in development mode, it is ONLY available via
localhost/127.0.0.1. That said, if you have a port conflict, you can change the port it uses:And then you can access the development server via:
It’s worth reiterating that the development server will NOT be available from remote hosts, to discourage you from using it in a production environment, which it is not suited for. If you need to be able to access your Django app from a remote host, you need to deploy your application to something like Apache2 with mod_wsgi.