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

51175
269
1389
05.11.2020
Tony Teaches Tech

Tony Teaches Tech

5692147
46700
473
28.11.2011
US
Описание видео:

Learn how to deploy a Django website on Nginx with uWSGI as a web server gate interface. In this complete tutorial, we will use Ubuntu 20.04 and the latest version of Django and uWSGI. Nginx will communicate requests to the WSGI via a UNIX socket. Additionally, we will create a system service to launch the website at boot (and keep the service running). Code snippets and more at 🤍tonyteaches.tech/django-nginx-uwsgi-tutorial/ Check out my vlog channel 🤍Tony Florida #django #uwsgi #nginx #ubuntu

Кадры из видео
How to Deploy Django on Nginx with uWSGI (full tutorial)
How to Deploy Django on Nginx with uWSGI (full tutorial)
How to Deploy Django on Nginx with uWSGI (full tutorial)
How to Deploy Django on Nginx with uWSGI (full tutorial)
Тэги из видео
Комментарии пользователей:
Subraya Mallya
2022-09-22 04:34:26

is installing and configuring Gunicorn instead of uWSGI the same?

ELDAL3IE
2022-09-19 17:16:21

Thank you very much broo

Teddy Fuzz
2022-09-07 02:21:41

This is THE online resource to get a Django project deployed! I can't thank you enough, Tony, I have been struggling with this for days!

Hodoros
2022-08-31 01:16:16

Subscribed, thank you for this.

Still not 100% clear on why nginx is needed here - I heard your explaination in the video that nginx is "better" at handling static files, but that didn't really sound like concrete answer. Would you be able to expand on that a little bit? Thanks!

Side question - the static files that are generated with collectstatic, what are those? Just defaults that get shipped with Django?

Thanks again for this great tutorial

Sergey Semkin
2022-08-29 21:54:20

Спасибо большое за видео! Очень доступно рассказано! Успехов!)

Arnold Wolfstein
2022-08-29 19:14:27

What is the font? Looks amazing.

Abiola Johnson
2022-08-14 08:10:32

Thank you so much!

Sol He
2022-08-08 13:22:26

Anyone got 404 not found Failed to load resource when trying to visit medie/media.gif?

Eternal Footprints Missions
2022-08-03 21:01:04

Thanks a lot, Tom this was really helpful

Nhat
2022-07-31 09:30:44

mine stuck at "starting uWSGI Emperor" it didn't do anything

Hope
2022-07-28 23:03:20

awesome

Becunim
2022-07-22 16:06:31

microdomains.sock file

what happened with that?

Noajm IsMy Name
2022-07-09 17:01:47

ZpR1W-NWnp4&t=23m25s 23:25 I think it is due to port forwarding ?

Abdillah Mohamed
2022-06-23 13:35:41

I followed the video I have and it helped me setup my first cloud server and it's running normally thanks to the knowledge I learned from this video, thank you very much.
After I copied the same configurations in my local server. I just changed the cloud server name to the local server name. The path name of the project in the cloud server and that of the physical server remains unchanged. So no difference in the path of the project. Unfortunately, at the level of access to files in the media folder, it shows me the 403 Forbidden error and I am really surprised, as nothing has changed in terms of configuration except for the public IP addresses. And I want to access the website, it shows me the message: "Welcome to nginx!" instead of the platform home page.
How to solve this problem?
Thanks

Andres Garcia
2022-06-22 21:00:48

Muchas gracias muy completo tu video y me ayudo a reforsar conceptos (Y)

Tulse Luper
2022-06-17 11:32:06

Thank you very much for this through reality-show-like tutorial! Much helpful! :-)

Mustafa Berker
2022-06-17 05:37:09

Hi, I have a question. Does this method works with Plesk panel on Ubuntu LTS (Apache web server and nginx as proxy server)? Actually, I have plesk panel and couldn't run Django app with Postgre SQL database (database has no issue, it works fine) Please record a video about plesk panel for Django installation...

Brook Daba
2022-05-26 18:39:12

This is a wonderful tutorial. Thank you very much Tony!
I unfortunately ran into some issues at the end of step 5. when I try to get media files, nginx gives me a 403 error. I set the .conf file correctly (and is linked to site-enabled directory) and my media directory has r-x permissions for all users. I would really appreciate it If you can help me understand the problem, or just where I can start to debug.

Felix Ortega
2022-05-18 06:06:40

5 0 2 B A D G A T E W A Y.... If I try to serve the media file: 4 0 3 F O R B I D D E N

Что ищут прямо сейчас
bgmi error fix avion food fusion recipes bunny dodge ram review puffy khesari Lal ke New gana marine mammal харламов Esayas Afwerki девушка luoke silai machine 樂土 K pop packing up my room f droid apps syberiallyrics เพงกึมมุ 美食 fummins
Похожие видео
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

13.03.2019
WSGI for Web Developers (Ryan Wilson-Perkin)

WSGI for Web Developers (Ryan Wilson-Perkin)

10.10.2020
Django | Server Setup (WSGI, Gunicorn, Nginx)

Django | Server Setup (WSGI, Gunicorn, Nginx)

16.12.2020
What is Nginx | easy way

What is Nginx | easy way

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

04.06.2022
Are Free SSL Certificates Really Good Enough for Your Website?

Are Free SSL Certificates Really Good Enough for Your Website?

19.11.2020
Deploying Django with Docker Compose, Gunicorn and Nginx

Deploying Django with Docker Compose, Gunicorn and Nginx

28.03.2019
Containerizing Python web apps with Docker, Flask, Nginx & uWSGI

Containerizing Python web apps with Docker, Flask, Nginx & uWSGI

10.10.2020
Best Web Server? Apache vs Nginx vs OpenLiteSpeed (static content speed test)

Best Web Server? Apache vs Nginx vs OpenLiteSpeed (static content speed test)

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

06.06.2021
How deploy a Django application using Nginx & Gunicorn in Production

How deploy a Django application using Nginx & Gunicorn in Production

02.09.2020
All You Need to Know about WSGI

All You Need to Know about WSGI

13.12.2021
How to Deploy Django Project - AWS EC2 + Nginx + uWSGI

How to Deploy Django Project - AWS EC2 + Nginx + uWSGI

22.05.2021
What is WSGI and Why Do You Need Gunicorn and Nginx in Django

What is WSGI and Why Do You Need Gunicorn and Nginx in Django

10.09.2020
How to Install and Use Virtualmin (and Webmin) on Debian (with multiple domains)

How to Install and Use Virtualmin (and Webmin) on Debian (with multiple domains)