Publishing to a Web Server - Django Web Development with Python 11

sentdex · 200K views · 2016 · 23:51

Open on YouTube

Web developmentCloud, DevOps & reliabilitytutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the DigitalOcean deployment guide they followed, usually when their live Django site breaks with 502 errors, host errors or missing static files.

Recommended by 0 people across 0 different months, 2018 to 2020.

What it is

A 24-minute episode from sentdex's Django web development series on moving a project from a local machine to a live server. It uses a DigitalOcean droplet, including their one-click Django image, and walks through deployment step by step.

What people said

Cites Bhaskar J.T · 2018-06 · Stack Overflow · on “Not able to open website using domain-name,published using DigitalOcean”

Here is my 'settings.py' file.I did add ' [LINK] ' already. [LINK] I've even added it in the 'allowed_hosts' of 'request.py' file,as mentioned in the exception location. [LINK] I've also added 'service gunicorn restart',in my Putty CLI,after connecting to my droplet in DigitalOcean. The link to the tutorial I followed,to reach till this point is this : [LINK] And,the particular video is : [this video]

Cites Daniel · 2018-10 · Stack Overflow · on “Getting a 502 Bad Gateway error on live site after digitalocean one click django install”

Summary of problem Getting a “ 502 Bad Gateway - nginx/1.14.0 (Ubuntu)” error when visiting my live site. Only able to access site through a development server port: python3 manage.py runserver 0.0.0.0:8080 I can then access my site via [LINK] and everything works as it should I believe it has to do with gunicorn's inability to serve my project Technologies python3 django version 2.1.2 Digitalocean Workflow up to the point of error Created a droplet on digital ocean - following this guide [this video] It seems many people in the comment section of that guide are experiencing the same issue Used digital ocean’s one click install for django Before uploading my project files I checked the live site

Cites sogu · 2020-03 · Stack Overflow · on “nginx fails while the website somehow still works”

Description I have built my Django3, gunicorn, nginx, Ubuntu 18.04, Digital Ocean project based on this guide [LINK] . I only had 1 problem that it does not shows the CSS and all other static files like images. Before during the whole guide nginx have given the correct answers as the guide says and also currently the html site still online and running To solve this I was in the process of using this another guide [this video] to make my static files displayed on my site. I have done all the steps what the creator recommended but at the What I have tried After each step of the following [1.2.3...] commands I have executed the following commands to refresh: python3 manage.py collectstatic sudo ngin