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
@alexanderhdo5 жыл бұрын
I'm not sure if you made this video because of my comment or not, but thank you soooooo much! Super helpful
@teerthad875 жыл бұрын
Your production quality is getting better. Awesome to have such amazing resources for Django in this channel.
@savannahfreire35962 жыл бұрын
The best deployment tutorial out there!
@TheDarrenJones5 жыл бұрын
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.
@CesarContreras135 жыл бұрын
the best django deployment tutorial I've ever seen, thank you so much, very well explained
@ammarjamil24673 жыл бұрын
Bro the way you teach is very good keep coming these awesome Django tutorials
@josecuevas58144 жыл бұрын
Great video! My first django deploy in production :)
@rameshyelle28844 жыл бұрын
Thank you so much! This was very helpful for my first time deployment a django project in digitalocean.
@MN-qe9hj4 жыл бұрын
10:05 personal bookmark for when he talks about origin masters
@oscarvardela47923 жыл бұрын
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
@nevilleotieno96382 жыл бұрын
You win man. Thank you so much for this video. Saved my life 💯💯💯
@kaibrown6642 жыл бұрын
You're awesome dude. Really appreciate the good content!
@arielreyes14854 жыл бұрын
Man, one of the best and simple videos that I've ever seen. Congrats and thaks.
@miguelship34 жыл бұрын
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 Жыл бұрын
Excellent! Thank you.
@himanish20064 жыл бұрын
Thanks was able to deploy using gunicorn,ngnix & django.Great tutorial.
@akoloscar3967 Жыл бұрын
U saved me....ur the best
@chyyeeah4 жыл бұрын
Thanks!! This was very helpful for my very first time deploying a django project on digitalocean
@ethemguner68083 жыл бұрын
This helped a lot. Thank you.
@yacinerouizi8444 жыл бұрын
please make a video to how deploy a django + reactjs project. great job thank you very much
@ladyking834 жыл бұрын
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!
@noorfaisal76322 жыл бұрын
Mam, Same issue here, May I know what you have did to solve?
@itzelbrachomolina3446 Жыл бұрын
@@noorfaisal7632 the problem I had was located in STATIC_ROOT, I just changed the path
@julianbenegas5125 жыл бұрын
Thanks, man. Great video. Subscribed!!!!!!!!
@user-tb5mp8bv6i5 жыл бұрын
You should definitely showcase your VS code extensions.
@danielalbert40775 жыл бұрын
Awesome explanation dude. Thanks so much for the tutorial..Saved my life!
@tiberiusmairura7612 жыл бұрын
You made my day!
@timonkoskei72565 жыл бұрын
saved me a lot of time thank you. Now I would like to see how I can do all this with Docker.
@michaelachterberg82 жыл бұрын
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?
@elduke29325 жыл бұрын
Thank you nice tutorial, can u create a supermarket app whit Django and React ?
@adebayokehinde15804 жыл бұрын
I've been deploying my Django web apps with heroku and pythonanywhere, DigitalOcean has a fair pricing compared to heroku
@theenigma11094 жыл бұрын
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)
@mahmudulhasan9812 жыл бұрын
Thanks. Nice and easy explanation.
@al-fathir43962 жыл бұрын
please help, cannot render static file, css not rendered
@sailendrachettri85213 жыл бұрын
Thank You!
@unperrier59983 жыл бұрын
It's all manual, what's interesting is how to makethis happen from a CI/CD pipeline.
@infect3ds9202 жыл бұрын
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?
@lukeslab19605 жыл бұрын
I like the way you say "here."
@SpurHub Жыл бұрын
Great work
@skhimelhaque92572 жыл бұрын
Awesome bro
@ruanxun94542 жыл бұрын
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 Жыл бұрын
how
@PremlalPremkumar3 жыл бұрын
Thanks for this wonderful post. This helped me.
@nhuergop5 жыл бұрын
Did you deployed your project from GitHub? Do you have any video to update to a higher service in DigitalOcean?
@delllatitude2995 жыл бұрын
You got a subscriber man
@benabdallahabdellaoui91354 жыл бұрын
Tahnks So so Much , working for me so fine
@imranmahmud98265 жыл бұрын
Can't we host our Django application on hostgator or any other hosting provider - (without cloud)...?
@souleymanekeita60772 жыл бұрын
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
@okeyshourovroy27693 жыл бұрын
How to add domain to django?
@mehdimehdizad28782 жыл бұрын
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!
@infect3ds9202 жыл бұрын
Nice 😂
@mrmuranga4 жыл бұрын
Thanks...just deployed by site (website + API)
@ahmeddewidar18304 жыл бұрын
Extremely helpful, great job man
@rizovictor4 жыл бұрын
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
@kadeus3 жыл бұрын
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 ?
@patrickjoly78203 жыл бұрын
Thank you. Very good and helpfull.
@AhsanKhan-gg1qi4 жыл бұрын
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.
@groggores4 жыл бұрын
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-gg1qi4 жыл бұрын
@@groggores Oh I didn't knew that. Thanks.
@tinni199954 жыл бұрын
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 ;(
@tinni199954 жыл бұрын
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
@bektursunsamatuulu97724 жыл бұрын
@@tinni19995 Thank you, I just did like your reply. But why it works like this? Would be appreciate to know your answer
@g-wm63922 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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) .
@elijahsoladoye64154 жыл бұрын
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)
@dianazaluzhna16852 жыл бұрын
how to create all these directories that already in VSCode?
@leonardonesic53795 жыл бұрын
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?
@jasonxue3763 жыл бұрын
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.
@diegomejiasalinas2363 жыл бұрын
YOU'RE THE BEST!
@crimcrow4 жыл бұрын
Thanks for this !
@eesakamaldien19173 жыл бұрын
For South African developers what would be the best region to use
@learnwithvector4 жыл бұрын
Thanks a lot bro Can i use the same steps when using a centOs server
@pt.9e5 жыл бұрын
Thank you for the tutorial! Can you tell me how I deploy multiple website django using nginx and gunicorn? Thanks!!!
@purushottamrawat51862 жыл бұрын
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.
@bidhubhushanroy33363 жыл бұрын
How to migrate a django website from one server to another?
@User-lc4zo3 жыл бұрын
19:18 .... thank you sir is there anything that could prevent gunicorn from binding in linode ill just ask?
@evanysmayor28123 жыл бұрын
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?
@ramiboutas2 жыл бұрын
thank you a lot for this :))))
@stuchung67415 жыл бұрын
Very easy too follow.
@miraccan004 жыл бұрын
why you don't use git clone what's difference? you used remote command can you explain ?
@Wololeitor3 жыл бұрын
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
@codinggeek52314 жыл бұрын
SUPER SMOOTH !!!
@vinayyadav20364 жыл бұрын
does postgresql needs any before other than shown in the video to set up postgresql as a database?
@itechdivyanshu24344 жыл бұрын
not getting the static files on the site please help
@sonsangsom3 жыл бұрын
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?
@abhishekrawat85793 жыл бұрын
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?
@niteshrawat5764 жыл бұрын
where will the logs will be created? can we customize it ?
@andrecharlea83895 жыл бұрын
Great Video. This is awesome. But can you add SSL maybe with Letsencrypt to the django project
@dhrubabarman18103 жыл бұрын
can i use another's GitHub repository project on my website?
@csandreas14 жыл бұрын
please do a tutorial for aws lightsail deployment
@MrAmG175 жыл бұрын
[/etc/systemd/system/gunicorn.socket:6] Unknown section 'Service'. Ignoring. WHY IM GETTING THIS ERROR. ??? HELP!
@MrAmG175 жыл бұрын
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..
@mockba774 жыл бұрын
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
@amvtube55673 жыл бұрын
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" ?
@vinayyadav20364 жыл бұрын
How can I collectstatic command after deployment ???
@drewpham96624 жыл бұрын
Any idea as to why im getting a 404 error with my media folder?
@cesarcontreras37464 жыл бұрын
great tutorial, thank you but I get this error "[Errno 13] Permission denied" when I try to upload an image
@cesarcontreras37463 жыл бұрын
@@Telak_Colombia if i remember correctly, it was with chmod
@stelity2 жыл бұрын
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?
@stelity2 жыл бұрын
nvm, figured it out.
@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 Жыл бұрын
The one on your local development computer, you don't commit to git cause you might have other dependencies.
@hasansajedi87265 жыл бұрын
That’s very helpful
@groovy200x4 жыл бұрын
love this!
@kadeus3 жыл бұрын
pls Video for ssl
@maheshroyal62905 жыл бұрын
I was waiting for Login ,Register users..Also adding number of views and adding like button :(
@shpazhist5 жыл бұрын
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
@rasimatics3 жыл бұрын
Thanks :)
@GiuseppeSerraonline5 жыл бұрын
absolutely pro
@yukeshnepal48853 жыл бұрын
I used the above referal link but it costs me $6.89 , but i get $100 credit. Isn't it supposed to be free??
@benmalen86685 жыл бұрын
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
@danielsoto47525 жыл бұрын
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.
@firesubliminal45352 жыл бұрын
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