No video

How to deploy a Django project with DigitalOcean

  Рет қаралды 89,809

Matt Freire

Matt Freire

Күн бұрын

Пікірлер: 156
@menjaholmwettergren5058
@menjaholmwettergren5058 3 жыл бұрын
I have said it before, this video is AMAZIIIING and it may NEVER be deleted, it is my bibel when I have to deploy my website
@alexanderhdo
@alexanderhdo 5 жыл бұрын
I'm not sure if you made this video because of my comment or not, but thank you soooooo much! Super helpful
@teerthad87
@teerthad87 5 жыл бұрын
Your production quality is getting better. Awesome to have such amazing resources for Django in this channel.
@savannahfreire3596
@savannahfreire3596 2 жыл бұрын
The best deployment tutorial out there!
@TheDarrenJones
@TheDarrenJones 5 жыл бұрын
Thanks for another great video! Deployment is often forgotten and having a run-through on a real-world app on a host we might actually use is really useful.
@CesarContreras13
@CesarContreras13 5 жыл бұрын
the best django deployment tutorial I've ever seen, thank you so much, very well explained
@ammarjamil2467
@ammarjamil2467 3 жыл бұрын
Bro the way you teach is very good keep coming these awesome Django tutorials
@josecuevas5814
@josecuevas5814 4 жыл бұрын
Great video! My first django deploy in production :)
@rameshyelle2884
@rameshyelle2884 4 жыл бұрын
Thank you so much! This was very helpful for my first time deployment a django project in digitalocean.
@MN-qe9hj
@MN-qe9hj 4 жыл бұрын
10:05 personal bookmark for when he talks about origin masters
@oscarvardela4792
@oscarvardela4792 3 жыл бұрын
it works very well, thank you for everything, instead ip address I putted on my own domain, there's no information in Spanish but it helped me very much, Thank U from Bolivia
@nevilleotieno9638
@nevilleotieno9638 2 жыл бұрын
You win man. Thank you so much for this video. Saved my life 💯💯💯
@kaibrown664
@kaibrown664 2 жыл бұрын
You're awesome dude. Really appreciate the good content!
@arielreyes1485
@arielreyes1485 4 жыл бұрын
Man, one of the best and simple videos that I've ever seen. Congrats and thaks.
@miguelship3
@miguelship3 4 жыл бұрын
Hey, I'm not a django developer, so maybe this is a dumb question but I just want to make sureof this: If I want to update a change, I just need to stop the server, pull the commit from the repo to the server and then restart the server again? Do I need to restart something else like ngnx or something else? Nice video btw man!! Very well explained, it was very easy to follow for a non django coder. Thanks mate!!
@barriesimpson
@barriesimpson Жыл бұрын
Excellent! Thank you.
@himanish2006
@himanish2006 4 жыл бұрын
Thanks was able to deploy using gunicorn,ngnix & django.Great tutorial.
@akoloscar3967
@akoloscar3967 Жыл бұрын
U saved me....ur the best
@chyyeeah
@chyyeeah 4 жыл бұрын
Thanks!! This was very helpful for my very first time deploying a django project on digitalocean
@ethemguner6808
@ethemguner6808 3 жыл бұрын
This helped a lot. Thank you.
@yacinerouizi844
@yacinerouizi844 4 жыл бұрын
please make a video to how deploy a django + reactjs project. great job thank you very much
@ladyking83
@ladyking83 4 жыл бұрын
Thanks to you i was able to deploy my django app, i had some hard time getting my head around the static files & its path in the settings.py. other than that it was super helpful and straight into the point. LIKE!
@noorfaisal7632
@noorfaisal7632 2 жыл бұрын
Mam, Same issue here, May I know what you have did to solve?
@itzelbrachomolina3446
@itzelbrachomolina3446 Жыл бұрын
@@noorfaisal7632 the problem I had was located in STATIC_ROOT, I just changed the path
@julianbenegas512
@julianbenegas512 5 жыл бұрын
Thanks, man. Great video. Subscribed!!!!!!!!
@user-tb5mp8bv6i
@user-tb5mp8bv6i 5 жыл бұрын
You should definitely showcase your VS code extensions.
@danielalbert4077
@danielalbert4077 5 жыл бұрын
Awesome explanation dude. Thanks so much for the tutorial..Saved my life!
@tiberiusmairura761
@tiberiusmairura761 2 жыл бұрын
You made my day!
@timonkoskei7256
@timonkoskei7256 5 жыл бұрын
saved me a lot of time thank you. Now I would like to see how I can do all this with Docker.
@michaelachterberg8
@michaelachterberg8 2 жыл бұрын
Great tutorial, only I have one problem with my deployment .. I have included a postGIS extension to my database. The static site pages work well but every time I try open a page with a form my server crashes .. how can I resolve this or find out what is causing it?
@elduke2932
@elduke2932 5 жыл бұрын
Thank you nice tutorial, can u create a supermarket app whit Django and React ?
@adebayokehinde1580
@adebayokehinde1580 4 жыл бұрын
I've been deploying my Django web apps with heroku and pythonanywhere, DigitalOcean has a fair pricing compared to heroku
@theenigma1109
@theenigma1109 4 жыл бұрын
Heroku is so expensive man, the only reason K sued pythonaywhere in the fist place is because it was just so extremely easy to host small apps. I currently host my apps on Linode, which is almost the same as Digital Ocean(they name their vps units as linodes instead of droplets like in Digital ocean)
@mahmudulhasan981
@mahmudulhasan981 2 жыл бұрын
Thanks. Nice and easy explanation.
@al-fathir4396
@al-fathir4396 2 жыл бұрын
please help, cannot render static file, css not rendered
@sailendrachettri8521
@sailendrachettri8521 3 жыл бұрын
Thank You!
@unperrier5998
@unperrier5998 3 жыл бұрын
It's all manual, what's interesting is how to makethis happen from a CI/CD pipeline.
@infect3ds920
@infect3ds920 2 жыл бұрын
Excellent tutorial! Thanks a lot. I have deployed mine using the steps in this tutorial, do I need an extra service to store static and media files? Or is everything set?
@lukeslab1960
@lukeslab1960 5 жыл бұрын
I like the way you say "here."
@SpurHub
@SpurHub Жыл бұрын
Great work
@skhimelhaque9257
@skhimelhaque9257 2 жыл бұрын
Awesome bro
@ruanxun9454
@ruanxun9454 2 жыл бұрын
For someone who can't load the static files (such as me), you need to change the give permission of read / write to your users folder using the chmod command.
@aeronbacunawa7556
@aeronbacunawa7556 Жыл бұрын
how
@PremlalPremkumar
@PremlalPremkumar 3 жыл бұрын
Thanks for this wonderful post. This helped me.
@nhuergop
@nhuergop 5 жыл бұрын
Did you deployed your project from GitHub? Do you have any video to update to a higher service in DigitalOcean?
@delllatitude299
@delllatitude299 5 жыл бұрын
You got a subscriber man
@benabdallahabdellaoui9135
@benabdallahabdellaoui9135 4 жыл бұрын
Tahnks So so Much , working for me so fine
@imranmahmud9826
@imranmahmud9826 5 жыл бұрын
Can't we host our Django application on hostgator or any other hosting provider - (without cloud)...?
@souleymanekeita6077
@souleymanekeita6077 2 жыл бұрын
Hello JustDjango I did everything like you but when i try sudo ufw allow 8000 and enter my user password i had this error "Sorry, try again." 3 times and after i got sudo: 3 incorrect password attempts i have tried also to enter my pc root password and it's the same Thanks to help me
@okeyshourovroy2769
@okeyshourovroy2769 3 жыл бұрын
How to add domain to django?
@mehdimehdizad2878
@mehdimehdizad2878 2 жыл бұрын
Thanks for great video! and help to us. And if you are problem with admin css: my sollution is copy files from staticfiles to static, after this everythink is working!
@infect3ds920
@infect3ds920 2 жыл бұрын
Nice 😂
@mrmuranga
@mrmuranga 4 жыл бұрын
Thanks...just deployed by site (website + API)
@ahmeddewidar1830
@ahmeddewidar1830 4 жыл бұрын
Extremely helpful, great job man
@rizovictor
@rizovictor 4 жыл бұрын
This really is a helpful video. Thank you so much. However, I am having issues with the urls. The firsts urls the server got when I did the pull work fine, but the new ones I am committing does not work. Is like if the gninx do not know about the changes. I restarted the services but still not working.. What can I do? Please help
@kadeus
@kadeus 3 жыл бұрын
Hi, I can not understand how your GIT worked u have git push from Local to GitHub and how to make automatically pull request from GitHub to server ?
@patrickjoly7820
@patrickjoly7820 3 жыл бұрын
Thank you. Very good and helpfull.
@AhsanKhan-gg1qi
@AhsanKhan-gg1qi 4 жыл бұрын
Given how this is a tutorial, you should have demonstrated how to deploy the app on a free provider like Heroku or something so that a person can practice his/her skills before going live on a paid hosting service. Please take this into consideration as not everyone wants to engage into paid web hosting directly on a tutorial project. You should take this seriously into consideration.
@groggores
@groggores 4 жыл бұрын
Ahsan Khan you can get 100$ free credit if you use his promotion code in the description. Then it does not cost anything to follow along the video. Also, Heroku is different because with the free version of hosting they do most of the server setup automatically. So then you would not be able to show how to setup a web server, etc.
@AhsanKhan-gg1qi
@AhsanKhan-gg1qi 4 жыл бұрын
@@groggores Oh I didn't knew that. Thanks.
@tinni19995
@tinni19995 4 жыл бұрын
Hello , I love all fo your tutorials!!! unfortunately I cannot make the static files to work following your steps, at least they don't work on the droplet but they do on local ;(
@tinni19995
@tinni19995 4 жыл бұрын
I got it working finally after 2 days, static files only work if you enable debug to true on server at steps around 18 minutes
@bektursunsamatuulu9772
@bektursunsamatuulu9772 4 жыл бұрын
@@tinni19995 Thank you, I just did like your reply. But why it works like this? Would be appreciate to know your answer
@g-wm6392
@g-wm6392 2 жыл бұрын
same here im able to deploy my django app through this tutorial thankyou! could someone also help me out with a question i have, i am still actively trying to solve it why is it that upon hosting on an instance, functionality such as camera doesn't work anymore i understand to some degree that because we are using django and so we need a container to contain it so we set up a whole another instance(computer/vm) that instance doesn't neccessarily has media devices how do we then get it to be in touch with the user-clientside media devices that is cameras? any help would be greatly appreciated
@SJ_46
@SJ_46 Жыл бұрын
I wasted 1 day trying to figure out why static files are not coming, it is showing 403 forbidden error, here is the solution: You need to give nginx permission to execute the static files, for that you need to add www-data to the same group as the current user, you can do that by sudo usermod -a -G user_name www-data lastly u need to enable execute permission of group for /home/ if it's not already enabled (to check it you need to use the command, ls /home/ -l ) if its not enabled you need to to enable that by switching to the root user. Thanksss ;)
@RosilieLim
@RosilieLim Жыл бұрын
Thank you for sharing this step. I have tried different means to make the static files show up but to no avail. I followed your steps too but still, I am not seeing the static files with Debug= True or Debug = False. I am new to Django, so this is all confusing. I did these: sudo usermod -aG www-data AND grandt permission sudo chmod -R g+r I wonder if you have done additional step(s) .
@elijahsoladoye6415
@elijahsoladoye6415 4 жыл бұрын
Thank you so much for this tutorial, helped a lot, I wanted to know if the droplets are charged immediately you created them (based on their plans)
@dianazaluzhna1685
@dianazaluzhna1685 2 жыл бұрын
how to create all these directories that already in VSCode?
@leonardonesic5379
@leonardonesic5379 5 жыл бұрын
Ty for the tutorial... Could you help with uploading a REACT front end with django backend? i deployed the django part, how can i integrate both?
@jasonxue376
@jasonxue376 3 жыл бұрын
What is the best way to deploy Django web on the local Windows server? I tried a few, but neither of methods works. Could you make a tutorial about it? Thanks a lot.
@diegomejiasalinas236
@diegomejiasalinas236 3 жыл бұрын
YOU'RE THE BEST!
@crimcrow
@crimcrow 4 жыл бұрын
Thanks for this !
@eesakamaldien1917
@eesakamaldien1917 3 жыл бұрын
For South African developers what would be the best region to use
@learnwithvector
@learnwithvector 4 жыл бұрын
Thanks a lot bro Can i use the same steps when using a centOs server
@pt.9e
@pt.9e 5 жыл бұрын
Thank you for the tutorial! Can you tell me how I deploy multiple website django using nginx and gunicorn? Thanks!!!
@purushottamrawat5186
@purushottamrawat5186 2 жыл бұрын
I am getting 500 error code after following these steps. There sre no error logs in gunicorn and I am not able to get the error logs for this issue.
@bidhubhushanroy3336
@bidhubhushanroy3336 3 жыл бұрын
How to migrate a django website from one server to another?
@User-lc4zo
@User-lc4zo 3 жыл бұрын
19:18 .... thank you sir is there anything that could prevent gunicorn from binding in linode ill just ask?
@evanysmayor2812
@evanysmayor2812 3 жыл бұрын
Hello and thank you, I could deploy my django app on digital ocean, one question, how can I deploy two or more django apps in the same doplet?
@ramiboutas
@ramiboutas 2 жыл бұрын
thank you a lot for this :))))
@stuchung6741
@stuchung6741 5 жыл бұрын
Very easy too follow.
@miraccan00
@miraccan00 4 жыл бұрын
why you don't use git clone what's difference? you used remote command can you explain ?
@Wololeitor
@Wololeitor 3 жыл бұрын
perfect tutorial, just one question, how i can put my domain in the allowed host?, like www.myhost.com?, i need to do something first to give the access dns ?, thank you
@codinggeek5231
@codinggeek5231 4 жыл бұрын
SUPER SMOOTH !!!
@vinayyadav2036
@vinayyadav2036 4 жыл бұрын
does postgresql needs any before other than shown in the video to set up postgresql as a database?
@itechdivyanshu2434
@itechdivyanshu2434 4 жыл бұрын
not getting the static files on the site please help
@sonsangsom
@sonsangsom 3 жыл бұрын
Hi, I follow this tutorial. I deployed my app ok. When I use python manage.py runserver 0.0.0.0:8000, it works fine, I can go to /admin. However, when using nginx, it breaks, I receive server error 500 on every routes. What should I do?
@abhishekrawat8579
@abhishekrawat8579 3 жыл бұрын
PLEASE HELP ME! Bro i have a question should I rely over postgres database that you have created in vps or should I've to purchase database plans...... I'm so confused about it...... what's the difference in that? Because I'm a newbie working on a project and didn't know more about deployment process. Basically my django project have static, media files, django authentication system, and CRUD functionality. Then should I prefer all above process at production level?
@niteshrawat576
@niteshrawat576 4 жыл бұрын
where will the logs will be created? can we customize it ?
@andrecharlea8389
@andrecharlea8389 5 жыл бұрын
Great Video. This is awesome. But can you add SSL maybe with Letsencrypt to the django project
@dhrubabarman1810
@dhrubabarman1810 3 жыл бұрын
can i use another's GitHub repository project on my website?
@csandreas1
@csandreas1 4 жыл бұрын
please do a tutorial for aws lightsail deployment
@MrAmG17
@MrAmG17 5 жыл бұрын
[/etc/systemd/system/gunicorn.socket:6] Unknown section 'Service'. Ignoring. WHY IM GETTING THIS ERROR. ??? HELP!
@MrAmG17
@MrAmG17 5 жыл бұрын
stackoverflow doesnt help. All the tutorials are shit. even this i do everything like you or the tutorial online and still it doesn't work at all. god damn it... we need A NORMAL tutorial. FROM 0 to 100..
@mockba77
@mockba77 4 жыл бұрын
Where would I find the Udemy course? I'd like to add a domain and SSL and am happy to give back on this great tutorial. Thank you
@amvtube5567
@amvtube5567 3 жыл бұрын
Thanks for this great video. I have a question on 9:11, what if in my requirements.txt already have psycopg2 (but not psycopg2-binary), do I have to install "pip install django gunicorn psycopg2-binary" or "pip install django gunicorn psycopg2" ?
@vinayyadav2036
@vinayyadav2036 4 жыл бұрын
How can I collectstatic command after deployment ???
@drewpham9662
@drewpham9662 4 жыл бұрын
Any idea as to why im getting a 404 error with my media folder?
@cesarcontreras3746
@cesarcontreras3746 4 жыл бұрын
great tutorial, thank you but I get this error "[Errno 13] Permission denied" when I try to upload an image
@cesarcontreras3746
@cesarcontreras3746 3 жыл бұрын
@@Telak_Colombia if i remember correctly, it was with chmod
@stelity
@stelity 2 жыл бұрын
at 20:05, can you explain what to put in for "WorkingDirectory" and "ExecStart"? I'm confused which files gunicorn wants to look for. Is it an empty folder or should my app be in one of those folders?
@stelity
@stelity 2 жыл бұрын
nvm, figured it out.
@sheriffcrandy
@sheriffcrandy Жыл бұрын
So you create a separate virtual environment on your VPS, so what do you do with the virtual environment that comes from your repo when you run git clone? So you have two virutal environments in the same directory?
@andrewng9950
@andrewng9950 Жыл бұрын
The one on your local development computer, you don't commit to git cause you might have other dependencies.
@hasansajedi8726
@hasansajedi8726 5 жыл бұрын
That’s very helpful
@groovy200x
@groovy200x 4 жыл бұрын
love this!
@kadeus
@kadeus 3 жыл бұрын
pls Video for ssl
@maheshroyal6290
@maheshroyal6290 5 жыл бұрын
I was waiting for Login ,Register users..Also adding number of views and adding like button :(
@shpazhist
@shpazhist 5 жыл бұрын
Hey man, im a total noob tbh, like for real.. I managed somehow to do a bootstrap web site with Python and just wanna deploy it now. Will i be able to do it if I follow all the guidelines in this video? Cuz I just came across your channel and really not sure if I should explore more material from your channel or just start doing right away using guidelines here as I just really-really-really want to finish the website for my girlfriend as Ive been doing it forever
@rasimatics
@rasimatics 3 жыл бұрын
Thanks :)
@GiuseppeSerraonline
@GiuseppeSerraonline 5 жыл бұрын
absolutely pro
@yukeshnepal4885
@yukeshnepal4885 3 жыл бұрын
I used the above referal link but it costs me $6.89 , but i get $100 credit. Isn't it supposed to be free??
@benmalen8668
@benmalen8668 5 жыл бұрын
It is worthwhile following the guide for Ubuntu 18.04 as some of the commands have been updated: www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04
@danielsoto4752
@danielsoto4752 5 жыл бұрын
I made a mistake on 26:35 and didn't put de blog name (I let myproject) so whenever I try to test nginx, it shows me the following error: open() "/etc/nginx/sites-enabled/myproject" failed (2: No such file or directory) in /etc/nginx/nginx.conf:62 How can I change for nginx to know that "myproject" is not the real name where it has to look for the file. I already run the sites-available command with my real project name.
@firesubliminal4535
@firesubliminal4535 2 жыл бұрын
try, cd /etc/nginx/sites-enabled, you see one folder with name "myproject", now delete this folder. and this resolve your problem. you can delete this folder with comand sudo rm -rf myproject
@firesubliminal4535
@firesubliminal4535 2 жыл бұрын
Sorry, i dont speak english to good.
Django Class Based Views Tutorial
31:34
Matt Freire
Рет қаралды 46 М.
How to Dockerize Django in 5 minutes
36:00
Matt Freire
Рет қаралды 31 М.
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 47 МЛН
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 3,4 МЛН
Вы чего бл….🤣🤣🙏🏽🙏🏽🙏🏽
00:18
Hosting a Django Website with Digital Ocean
1:05:30
CodingWithMitch
Рет қаралды 35 М.
Build a Django App on DigitalOcean
32:39
DigitalOcean
Рет қаралды 20 М.
How To Deploy Django on Ubuntu 18.04 using Apache and MySQL
1:07:42
Project Full Stack
Рет қаралды 33 М.
Django | Server Setup (WSGI, Gunicorn, Nginx)
9:37
Django road
Рет қаралды 143 М.
Prepare a Django app for Deployment using Docker
39:10
London App Developer
Рет қаралды 89 М.
What is the future of Django / Is Django becoming obsolete?
19:35