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 manage.py 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?
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!
Most likely your static files are not being loaded by the server. Make sure the following are taken care of:
STATIC_ROOT = os.path.join(BASE_DIR, 'static')python manage.py collectstaticIs this the same site where you followed the guide located here? If anything differs, please post additional details about your configuration and deployment.
In such cases you’ll need to deploy it using your Droplet’s IP address rather than localhost.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.