Can not see my Django website on browser on running it from Digital Ocean VPS

I have successfully set up my Digital Ocean VPS and deployed my Django website on the same.But when I run the project in my local system using python’s runserver python runserver command, it works pretty well and I am able to see the site on browser on localhost. But when I do the same thing from DigitalOcean’s Ubuntu 14.04 x64 VPS, it runs fine without any error but the site do not loads on the browser of my system. Same is the case if I run the project using nginx and gunicorn. Can any one please help me solving this issue?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Most likely your static files are not being loaded by the server. Make sure the following are taken care of:

  1. Add the path to your static files in settings.pySTATIC_ROOT = os.path.join(BASE_DIR, 'static')
  2. Run python collectstatic
  3. Also make sure your ip address or domain is added to your ALLOWED_HOSTS in


Is this the same site where you followed the guide located here? If anything differs, please post additional details about your configuration and deployment.