Django Tutorial - Deploy Django to the production server with Gunicorn and Nginx #21

preview_player
Показать описание
Welcome everyone to part 21 of the web development in Python with Django. In the recent tutorials, I showed you how to migrate your SQLite database to a remote server PostgreSQL database and how to use Google to authenticate users. Specifically, I used vultr provider. Finally, we came to the part where I'll show you how to migrate your Django project to the development server.

So, in this part, I'll work on the same server, migrate our whole project to a remote server, and prepare it for production use.

Out of the box, Django has a built-in server that we use locally. However, it is not suitable for production environments because it is single-threaded and lacks security measures.

This tutorial will cover how to deploy a Django application with Nginx, Gunicorn, PostgreSQL, and Let's Encrypt SSL on an Ubuntu server.

#django #programming #educational #technology #web #website
Рекомендации по теме
Комментарии
Автор

Really, thank you for this series. It is very valuable for me.
Have a great new year!

tatemo_labs
Автор

Thank you very much for such great Django lessons!
Please create a new Django playlist teaching us the following:
How to implement a user groups management like in the army grades (soldier, captain, lieutenant, governor and so on) each of them with different rights in general and over the other users (like banning permanent, temporary, blocking others rights, editing or viewing their own posts or the others and so on).
Second, it must be a like system for posts and for comments to that posts. The like system is somehow like the one from Facebook but not the same. It should be one just for voting up, one for voting down, one for spam, one for hate, and one for coins.
Some categories of users are able to make posts that can be viewed only if the other categories of users give a number of coins while voting that article else they can't read it.
Only some categories of users can vote down (e.g. those that have enough number of coins).
Any user can convert a given number of votes up (e.g. 100) into coins.
Users are automatically upgraded or downgraded from one category to another according on the totally number of coins they have.
Down votes are discounted from the up votes and if there are not any more up votes then coins are converted back into up votes and after that they are discounted because of down votes and that user category downgraded accordingly. If there aren't any coins anymore then that users records negative points and those are discounted while they receive up votes.
Any user can be also banned for a period of time (shorter or longer) if they reach any given number of negative points.
If any user post reach any given number of spam votes for their post or comment then that post or comment is moved to a hidden spam folder for being deleted by a higher category of users like moderators or admin or to be marked as not spam. Also after any given number of posts or comments marked as spam that user can be banned temporary or permanently.
The same for hate except that the post should not be deleted because it is not spam.
Any given category of users are able to give any amount of votes.
e.g. soldier or beginner just one, higher categories are able to give higher number of votes of any kind and so on.
Please do this in Django. Please.
Thank you so much in advance!

Krisler
Автор

Oh, wow. It works 😆.
Have to love your enthusiasm 👍.

This was a great series to brush up on my forgotten knowledge. Thank you

floatpoint
Автор

it was really helpful. Thanks a lot. really appreciate it :)

siam
Автор

Great content, this is I what looking for! I'm building my first django project and I'm thinking about how can I deploy my app in future and you really helped me, thanks a lot.

jxnzxc
Автор

bro, you don't know how much time I have spent trying to fix the error of nginx serving static files, thankkk you so much

ahmedalmalki-vdjn
Автор

I wish I would have met you earlier. Great channel with Django Content. KEEP IT UP! :)

xys
Автор

Very well organized and reliable tutorial ❤

intformbase
Автор

you are big my friend. i learned a lot bc of your content on this tutorial. im using this project as base for another personal project only for the porfolio use on my github, removing, changing and adding stuffs to improve the project. i wonder if this would bother u. i can mention your yt channel as the original owner. may i? greetings from venezuela : )

Vantagethis
Автор

i have zero error, and all is working but i cant see the project, only the welcom to nginx page, if i use :80 it redirects me always in the welcome to nginx page, i dont know how to resolve because i have zero log or error. thanks for the video !!!!

pietro
Автор

Why did you edit out how you fixed the certification process? I am stuck at exactly this point with the same error message

johannesschwenzer
Автор

Could you prepare a video for deploy for windows please.
gunicorn has error ModuleNotFoundError: No module named 'fcntl' for windows. thanks a lot.

cemsecim
Автор

is there will a diffrent if we used uwsgi ?

AhmedGamal-owpp
Автор

Why do you avoid pronouncing consonants? 😂

trubnikov