Django | Server Setup (WSGI, Gunicorn, Nginx)

52531
186
1771
10.10.2020
Dot JA

Dot JA

197301
2310
40
22.05.2020
GB
Описание видео:

A tutorial on how a Django project runs in development and production environments. I also show how to run a Django project using a WSGI server (Gunicorn) and a web server (Nginx).

Кадры из видео
Django | Server Setup (WSGI, Gunicorn, Nginx)
Django | Server Setup (WSGI, Gunicorn, Nginx)
Django | Server Setup (WSGI, Gunicorn, Nginx)
Django | Server Setup (WSGI, Gunicorn, Nginx)
Тэги из видео
Комментарии пользователей:
Dominic Victoria
2022-09-09 13:23:00

Can I use localhost ip instead?

Nick Heyer
2022-09-06 02:24:39

Hi, this is an awesome video! If possible, you should follow this up with how you would integrate certbot.

Алек Сневар
2022-08-28 02:42:40

Wow, that was a masterpiece of explanation! Thank you 🙏

Winningtech
2022-08-20 18:23:33

Never seen a django deployment tutorial as explanatory as this. I was totally struggling thanks!!

Cray Mend
2022-08-20 17:45:44

gunicorn config
command = '/home/ubuntu/django_env/bin/gunicorn'
pythonpath = '/home/ubuntu/myproject'
bind = 'your.ip.goes.here:8000'
workers = 3
nginx sites-available config
server {
listen 80;
server_name your.ip.goes.here/ your.ip.goes.here ;

location /static/ {
root /home/ubuntu/static/;
}

location / {
proxy_pass your.ip.goes.here:8000/ your.ip.goes.here:8000 ;
}
}
cmds
sudo apt update
sudo apt install nginx
sudo apt install -y python3-venv
python3 -m venv django_env
source django_env/bin/activate
pip install django
pip install gunicorn
django-admin startproject myproject
nano myproject/myproject/settings.py/ settings.py
mkdir conf
nano conf/gunicorn_config.py/ config.py
gunicorn -c conf/gunicorn_config.py/ config.py myproject.wsgi
(ctrl + z)
bg
sudo service nginx start
mkdir static
nano myproject/myproject/settings.py/ settings.py
sudo nano /etc/nginx/sites-available/myproject
cd /etc/nginx/sites-enabled/
sudo ln -s /etc/nginx/sites-available/myproject
sudo systemctl restart nginx

Abby Possum
2022-08-17 19:03:08

So, your captions have auto generated in dutch, and are incoherent. This video isn't at all accessible to anyone deaf or hearing impaired, is it possible you could re-generate the captions so I can actually make sense of this?

Innocent Kumwenda
2022-08-09 03:08:51

i admire you😁

Mark Gacoka
2022-08-07 18:57:24

This is the simplest explanation I have found thus far. Thank you so much!

Anil kumar Sahoo
2022-07-22 01:43:15

Thanks mam, my first deployment done seamlessly.

gianluca giuman
2022-06-30 07:39:08

Nice tutorial, i try to port on fedora the gunicorn part (systemd) with no success, anyone could help me ?

Mạnh ĐỖ
2022-06-27 22:12:09

thanks for your video. I have an error "No module named "myproject.wsgi". Any idea to fix it?

Nguyễn Văn Tín
2022-06-27 15:32:25

Thank you so much,

Finn
2022-06-08 17:00:47

this finally worked thank you.

Balamurugan B
2022-06-04 18:46:24

very short video. like it.

Dhairya Varshney
2022-05-20 10:30:24

Awesome video, how can i enable nginx on the domain name?

Alexander Smith
2022-05-20 01:20:54

Hello when I run gunicorn -c conf/ command it says i gave a invalid address but it is my external ip address? Is there a solution for this?

Christian Abreu
2022-05-18 14:24:25

Thanks. I ll try Gunicorn

Alex Joslin
2022-04-24 03:15:39

This was super insightful! Thank you so much. You're the best.

PRAKASH KUMAR
2022-04-22 08:01:13

Thankyou so much , for such wonderful explaination.

Что ищут прямо сейчас
造紙 日本 seiko journal marocain 人体 批評 шоу уральские пельмени andre marin yvonne work fails snowdonia bulin la macula Call Forwarding Off erick brian colon cnco EcoFlow River Max капитонов стандофф 2 独处 near shaggy 맞팔
Похожие видео
19.11.2020
Deploying Django with Docker Compose, Gunicorn and Nginx

Deploying Django with Docker Compose, Gunicorn and Nginx

16.12.2020
What is Nginx | easy way

What is Nginx | easy way

13.03.2019
WSGI for Web Developers (Ryan Wilson-Perkin)

WSGI for Web Developers (Ryan Wilson-Perkin)

22.05.2021
WSGI & ASGI Simplified

WSGI & ASGI Simplified

21.10.2020
How to Deploy Django on Nginx with uWSGI (full tutorial)

How to Deploy Django on Nginx with uWSGI (full tutorial)

28.04.2020
Simple Django Deployment (part 9): Serving static files in production

Simple Django Deployment (part 9): Serving static files in production

13.12.2018
Python Django Tutorial: Deploying Your Application (Option #1) - Deploy to a Linux Server

Python Django Tutorial: Deploying Your Application (Option #1) - Deploy to a Linux Server

02.09.2020
All You Need to Know about WSGI

All You Need to Know about WSGI

12.05.2022
The NGINX Crash Course

The NGINX Crash Course

10.05.2021
DJAWS: Deploy Django Container on AWS (Repo)

DJAWS: Deploy Django Container on AWS (Repo)

02.10.2020
Django | Using a PostgreSQL Database

Django | Using a PostgreSQL Database

07.04.2021
Docker | Towards serving React (Nginx) with Django API (gunicorn)

Docker | Towards serving React (Nginx) with Django API (gunicorn)

16.10.2020
NGINX Explained in 100 Seconds

NGINX Explained in 100 Seconds

21.10.2020
7 Critical Django Production Server Settings to Configure Before Going Live

7 Critical Django Production Server Settings to Configure Before Going Live

19.05.2020
Prepare a Django app for Deployment using Docker

Prepare a Django app for Deployment using Docker

31.12.2020
Getting Started with the Nginx Configuration File

Getting Started with the Nginx Configuration File

23.01.2019
Nginx Tutorial | Learn Nginx Fundamentals | Deploy a Web Application Using Nginx | Edureka

Nginx Tutorial | Learn Nginx Fundamentals | Deploy a Web Application Using Nginx | Edureka