Deploy Django Project on Digital Ocean
Вставка
- Опубліковано 21 лип 2024
- 🚀 In this tutorial, learn how to deploy your Django project on Digital Ocean VPS Droplet with Nginx and Gunicorn.
👨💻 Follow along as I walk you through the process step-by-step and explain everything in detail.
🚀 With Digital Ocean's VPS Droplets, you'll have the power and flexibility to scale your project, and Nginx and Gunicorn will serve your app with speed and reliability.
👍 Perfect for beginners and experienced developers alike - let's get your Django project up and running
👍 Subscribe to My Channel tutorials & Courses.
🔥 Learn Python in 1 Hour: • Python for Beginners -...
🔥 Become A Backend Developer in 3 hours: • Become a Backend Devel...
I'm also providing Patreon support to my channel, so if you are interested in supporting me, you can check it out.
patreon.com/CodeWithMuh
Course on Udemy: Learn Backend Development using Django and AWS.
www.udemy.com/course/learn-ba...
If you need a discount or want it totally free, if you think you deserve it, send me a message on my email. You will get a coupon code.
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
Please let me know if you would like to consult with or hire me.
Hire me on Upwork: www.upwork.com/freelancers/~0...
Place an order on Fiverr: www.fiverr.com/s/rBrEj7
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
Social Links:
Github: github.com/codewithmuh
LinkedIn: / muhammad-rashid-daha
Upwork: www.upwork.com/freelancers/~0...
X: / rashiddaha80
Instagram: / rashiddaha1
Medium: / codewithmuh
Website: codewithmuh.com
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
#digitalocean
📔 Source Code: github.com/rashiddaha/drfblog...
The article used in this Video:
• www.codewithmuh.com/blog/depl...
Table of Contents:
0:00:00 Introduction
0:00:24 Droplet Creation
0:05:30 Installing dependencies
0:07:01 Project Setup and its Environment
0:13:27 Configuring gunicorn
0:18:03 Configuring Nginx
Connect with me on LinkedIn: www.linkedin.com/in/muhammad-rashid-daha
wow your content is honey! many many thanks i'm looking exactly for this stuff :)
Glad to hear
thanks so much, this video was so much helpful though i had so much errors on the way, i kept going back to the video and the blog and finally workd. thanks
Glad to hear 😊
Thank You sir. with your tutorial I finally deployed my application
Glad to hear. Welcome
@@CodeWithMuh Hello sir django server not able to server uploaded mmedia when i change DEBUG = False what should i do
Thanks a lot sir i was able to host my website today on droplet just because of your amazing guidance
I am happy to hear. 💥
Thank you very much, what do I do once I have the changes on my repository? And how to run migrations with ngnix ? And how to see log of server on console
you saved my life bro :)
Glad to hear
The whitenoise library really solved my problem of serving static files! Thanks!
Glad to hear 😊.
Everything work, You are the boss Much thank you so much bro, you save my ass
You are doing good work ! keep going please
Happy to hear
This tutorial was awesome. It's unfortunate that I'm getting a 502 Bad Gateway after completing the tutorial though. How would you advice someone debug this issue?
Nginx or ports issue. Double check
@@CodeWithMuh well I tried the port connection with telnet your_server_ip 8000 and got this error: telnet: Unable to connect to remote host: Connection refused
please how did you save on your mac terminal
Cmd+x or escape(:wr then :wq)
it will be great if you can add a way to add ssl too
Ssl video is available at my channel
Please sir how to add a domain name to the ip adress ??
Watch my video backend development courses. There is a section related to this at the end.
I am having error 502 bad gateway eish I am struggling Sir 😢
Three issues can be. Your app erroe, nginx issue or gunicorn. Make sure these things are correct
502 Bad Gateway . and it is not allowing me to access any of the API
Check nginx and gunicorn error logs. You will have problem somewhere
@@CodeWithMuh I misspelled the directory name. thanks for the reply brother. Your video really helped. may allah bless you❤️
@@CodeWithMuh brother do you have any video where I can learn how to add github workflow for the deployed server?
You can use GitHub actions or Jenkins. Two videos are available on my UA-cam channel
by the way, do you know how to deploy multiple django apps in one vps? many thanks for future response :)
Yes, you can do. Reference: michal.karzynski.pl/blog/2013/10/29/serving-multiple-django-applications-with-nginx-gunicorn-supervisor/
@@CodeWithMuh thanks it is also possible with aws?
and would advice me to do this, because i'm a beginner in this field :P
I will not recommend
@@CodeWithMuh thanks for your advice, are you planning to create an own video to show how to multi app deployment via vps?
👍
how about deployment using
docker?
Yes, we can deploy using docker
@@CodeWithMuh Please, help us with a video :Digital Ocean, Django and Docker ! 🙏
I am going live today with docker deployment
I'm on windows how I can do that plaese ??
Ask your questions with details
@@CodeWithMuh i use Wiindows as OS and i want to deploy a django project lile you in the video but i see you used a Linux terminal
@@souleymanekeita6077 you can try to find if any tutorial using windows
@@CodeWithMuh ok thank you
remote: Support for password authentication was removed on August 13, 2021. I got this message when I try to clone
You are talking about git?
go for your git account settings -> developer settings -> tokens -> default tokens (or smth like that) -> and add token. use this token like password when u try to clone your repository