its funny that such an important concept its never explained in other channels, they can talk about django all day long, but fail to explain the professional way of deploying apps
@ashir3730
2 жыл бұрын
That's 1000000000000000....% correct. Come Back Mam, you have things that no one has.
@serious6037
2 жыл бұрын
100% bro. amen to that.
@sauravgupta7415
2 жыл бұрын
Because they don't know themselves.
@alfagroupkz
Жыл бұрын
😆🤌🏻
@MrRahul15937
Жыл бұрын
Digital ocean has blog post on it.
@vladventura1928
3 жыл бұрын
I love you, literally saved me from hours of endless headscratching; I'm new to this so its still pretty daunting to say the least :/
@yoip1234
5 ай бұрын
Such a simple and clear tutorial ! I have not seen another Django tutorial that explains the concept in such a clear way. Thank you for creating this video.
@python360
Жыл бұрын
This tutorial is bang on the money. I've followed an hour long video and not got it working, this last 9 mins and DOES work. Brilliant. If you get a chance could you do one on setting up SSL and port 443 with Django on a production site? Thank you Dot JA 🙂
@developer7607
Жыл бұрын
Thank you from South Korea! I have never seen such a easy-to-understand lecture to get the concept of web server❤
@djangoroad
Жыл бұрын
Thanks for the support :)
@outright99
3 жыл бұрын
OMG... the way you explained this is so clear... Many thanks really. Now investigating to add more security to the site! Cheers!
@fusionfuryx
Жыл бұрын
In my organisation, our huge django application is configured with both gunicorn and nginx as web server. I had so many confusions in the configuration coupling. Now I have a clear picture after watching your explanation. And one more thing, I would like you to make a similar video on nginx proxy server configuration for load balancing django application. As the user base grows, proxy server is the way to scale with proper cpu utilisation. Great video by the way. Keep up the good work. Thanks
@KrishnaManohar8021
4 жыл бұрын
Hope to cover this topics too: Django with lambda, Scaling Django with Docker, Kubernet Django with S3 Bucket Django with RDBMS (handle/Fetch data from the different database) cover with AWS.
@djangoroad
4 жыл бұрын
Nice ideas! Thanks
@SwapnilPhulse
4 жыл бұрын
Great points! A resource discussing this would be immensely helpful.
@KrishnaManohar8021
4 жыл бұрын
@@SwapnilPhulse +1
@danryan5044
2 ай бұрын
Clear and simple instructions. Still a great tutorial in 2024!
@jordanmuller2536
Ай бұрын
It's so rare that I click like on a video, but wow this was a great video. Had to go seerching in my apps UI to even find the button. Thank you for the explanation.
@djangoroad
Ай бұрын
Thanks, I appreciate it!
@anilkumarsahoo909
2 жыл бұрын
Thanks mam, my first deployment done seamlessly.
@lexxluey
Жыл бұрын
exactly what I was looking for. I have to install Django on a server on an intranet. this came in very handy
@harrylai5233
4 ай бұрын
Very good, it is the easy way that you show about how to deploy django app.
@etsw
Жыл бұрын
It was a very direct explanation and simple, but it's straight to the point. I liked it. Thank you :)
@jophycui2454
22 күн бұрын
Thanks for the video, I have got it running.
@lucaslourencoschimidt8480
11 ай бұрын
Incredible! Super intuitive and well explained. Thank you!!!!
@valittheboss
7 ай бұрын
Great video, thank you! However there's a small mistake at the end (I think), in the Nginx config where you're using "root /home/ubuntu/static", that wouldn't work because it will resolve to home/ubuntu/static/static I suppose it worked at the end because debug was still set to True
@huzaifasserugo4357
10 ай бұрын
thank you so much, I followed a digital ocean tutorial and couldnt get my app to be served, I am wondering why this very simplified approach gets the job done. Is this all the setup I have to do? what are the next steps? thank you so much.
@denisjean-bastien1253
Жыл бұрын
You are so awesome, it's so clean, thank you one million times !
@denisjean-bastien1253
Жыл бұрын
I'm trying so hard to setup Django with OpenLiteSpeed and his module LSAPI. If you're looking for a new tutoriel 😅
@middleclass3782
3 жыл бұрын
Thanks a lot. That was really helpful. Straight to the point.
@lolcraft2067
3 жыл бұрын
Thank you, the best tutorial on the topic
@maiadasilvapereira4633
8 ай бұрын
Thank you very much It is very useful Tutorial
@subinkv6849
8 ай бұрын
Easy to understand great presentation.
@nazymkaa_s
4 ай бұрын
thank you so much, how to restart the django app after changes ?
@nishadharank3674
8 ай бұрын
Is there any way to host the application using User interface like what we do in tomcat, without depending on the dba team each time while hosting
@agpark-yg8vs
5 ай бұрын
thank you!!! you literally save my life lol
@amiralikhan
11 ай бұрын
thank you very much - جزاکم اللہ احسن الجزاء
@vitali1959
3 ай бұрын
Thanks, great video!
@iammuslim8263
11 ай бұрын
The problem is when i enter in the admin page the design is gone I think the problem is on static file
@hasithaeranga5589
Жыл бұрын
very clear and onto the point
@rajeshs3771
3 жыл бұрын
Excellent. Well appreciated. Simple and elegant. ❤️ from Chn Greater Bharat
@liorbm1
3 жыл бұрын
This is really great ! Thank You !
@farhadkabir1321
3 жыл бұрын
very simple and informative
@angeldelgado6193
3 жыл бұрын
Thanks from Venezuela!!
@clearthinking5441
Жыл бұрын
in practice do you actually run these components through Docker?
@hamoudguicheniti3949
3 жыл бұрын
Thank you so much, great job!
@multimediaceron2742
Жыл бұрын
Great tutorial, thanks a lot
@username_6948
Жыл бұрын
amazing! tysm! how do i give permissions with chmod and chown to static files?
@crcacom
2 жыл бұрын
Thanks. I ll try Gunicorn
@itzmeraj6253
3 жыл бұрын
You are simply 👏👏😁 awesome
@ismendoza
Жыл бұрын
where is the file "name of my project".wsgi ?
@pavloo8850
3 жыл бұрын
Can I run this way multiple Django apps on one user account in the server?
@Indrajeet307
3 жыл бұрын
Informative video, thank you
@devuk5078
3 жыл бұрын
Hi ,how could I add domain name instead of IP address to access the apis endpoint
@alaminbijoy1027
3 жыл бұрын
wow! straight to the point
@mohangoud9956
3 жыл бұрын
how to add subdomain in bind, I tried - bind = subdomain.domain, domain/subdomain. But both doesn't work
@Den444ikRus
2 жыл бұрын
Thanks, I have a question (maybe a stupid one, I am only a beginner in this matter): Why would we expose wsgi server port to the outside world at ip_adress:8000? Can't we just run it on localhost:8000 with port 8000 closed?
@lutaayahuzaifahidris3679
Жыл бұрын
Nice question, me too I am wondering
@joandavi1078
3 жыл бұрын
great video!! Keep going
@djangoroad
3 жыл бұрын
Many thanks!
@harshtripathi6379
6 ай бұрын
If you are working with ec2 instance you might found a issue where gunicorn will not start with your_ip_address:8000 use 0.0.0.0:8000 it should work then
@DominicVictoria
2 жыл бұрын
Can I use *_localhost_* ip instead?
@社會觀察家
3 жыл бұрын
This is so helpful thx
@ranjithgodugu2566
2 жыл бұрын
Great video (Can u please do the same video on CentOS 7)
@trubnikov
11 ай бұрын
Amazing! Thank you so much!
@alfajrdream
2 жыл бұрын
Best article
@gianlucagiuman6132
2 жыл бұрын
Nice tutorial, i try to port on fedora the gunicorn part (systemd) with no success, anyone could help me ?
@anonymousghost5384
3 жыл бұрын
Can i use localhost for servername??? I wanna just use localhost
@djangoroad
3 жыл бұрын
0.0.0.0 just binds all IPs of the machine you're on i.e. the loopback IP and the public one.
@ishankukde6603
Жыл бұрын
Make a project live which has authentication and database server in it.
@abbypossum9460
2 жыл бұрын
So, your captions have auto generated in dutch, and are incoherent. This video isn't at all accessible to anyone deaf or hearing impaired, is it possible you could re-generate the captions so I can actually make sense of this?
@djangoroad
2 жыл бұрын
Hi Abby, apologies this video isn't accessible to you. I've edited the video to set the language to English. By "re-generate" the captions, do you mean enter the audio subtitles manually? or is there a way to auto-generate it?
@abbypossum9460
2 жыл бұрын
@@djangoroad well, now it doesn’t have any captions at all. I don’t know the process for adding captions on here, because I’m not the one that’s a KZitem content creator so I don’t know it’s tools.
@gedeoneyasu6811
3 жыл бұрын
Thanks, great video! I am learning Django deployment and always get afraid when I hear the terms Nginx and Gunicorn but you made them very clear now!
@djangoroad
3 жыл бұрын
I'm so glad you understand them better now :)
@ashir3730
2 жыл бұрын
@@djangoroad read: you are looser. Do you know why you stopped... creating the content? I was going to write this but you are not my slave. !00 and 2 o/o. that's your choice great videos mam. I pray you will come back not for us but .....
@aliyusulaiman8188
6 ай бұрын
Hahaha been there
@winningtech5
2 жыл бұрын
Never seen a django deployment tutorial as explanatory as this. I was totally struggling thanks!!
@gelismissuriyeli4440
2 жыл бұрын
I've watched 10 videos on this topic so far and some of them were 50 mins long "in the name of explaining in details" but this brief and well done video was the best and the clearest so far.
@tts1958
3 жыл бұрын
I get a 502 Bad Gateway error. I tried to fix it for the last couple of days and I can't. Does anyone have any idea how to solve it?
@laxmandesai573
3 жыл бұрын
Wait, I think you dropped this 👑
@jtgasper4621
2 жыл бұрын
Great content explained in such an easy-to-understand way. I loved how you broke down the concepts then showed them in practice.
@manho2965
2 жыл бұрын
thanks for your video. I have an error "No module named "myproject.wsgi". Any idea to fix it?
@hackvlix
Жыл бұрын
Nice tutorial. Complete, to the point, and, most importantly, correct.
@udbhavdave
3 жыл бұрын
your content is great buddy, just keep patience and continue making useful videos, and you will have huge reach. Thanks again, looking forward for more django and web development related videos.
@markgacoka9704
2 жыл бұрын
This is the simplest explanation I have found thus far. Thank you so much!
@mahrezbenhamad4445
3 жыл бұрын
Thanks, keep going
@raremoments7122
Жыл бұрын
my django-admin panel static files not showing, why ? i have properly configured the path of static files in nginx configuration. Django admin panel looks ugly why my static files are not working?
@Eduardo_C
Жыл бұрын
At 5:05, what and from where did you copy and paste? I am using a Mac and want to get the correct path for both the `command` and `pythonpath` variables. Thank you!
@mjennings061
4 жыл бұрын
A slick tutorial, well done! Are media files treated the same as static files or is there another configuration needed for production?
@djangoroad
4 жыл бұрын
Thanks for the feedback! Media files are treated same as static, you can specify the location in the Django configuration as well as the Nginx config. Depending on the traffic you receive to your web app, you might also want to look into S3 for storing this type of content.
@feluve
Жыл бұрын
Do you know if, once you place the static files in the /static/ folder, you have to set some permissions?
@frankstuart6032
3 жыл бұрын
ModuleNotFoundError: No module named 'myproject.wsgi' This is the error im getting when im running gunicorn -c conf/gunicorn_config.py myproject.wsgi
@alexdeathway
3 жыл бұрын
Have you specified the correct path (PYTHONPATH) for your project in Gunicorn_config.py.
@frankstuart6032
3 жыл бұрын
@@alexdeathway yes
@alexdeathway
3 жыл бұрын
@@frankstuart6032 remember you have to put path only till the dir which contain wsgi.py file. So that you can use myproject.wsgi in command for example if your wsgi file is located in: home/username/myproject/myproject/wsgi.py your pythonpath should be: PYTHONPATH="/home/username/myproject"
@frankstuart6032
3 жыл бұрын
@@alexdeathway thankyou i got it🙏🏽
@nickheyer
2 жыл бұрын
Hi, this is an awesome video! If possible, you should follow this up with how you would integrate certbot.
@shadowgag4526
3 ай бұрын
This was PEAK content! Very well explained. Just one question, I know I'm very late, but why did we need to create a specific route for /static/ in nginx ? What if we don't give it, django anyways is going to handle those right, after we run `collectstatic`?
@epithesi_sobrero
3 жыл бұрын
Great video! Simple deomonstration of the tool :) One note: in my case, isntead of "root" I needed "alias" for the static files (location /static/)
@rafaelcosquiere
2 ай бұрын
Nice video, thanks. I just wonder what’s the difference or pros and cons between serving statics with WhiteNoise vs serving statics with web server. Although I guess in production for real projects, statics will be serve by a cdn, right ?
@kenwakeyboard
7 ай бұрын
Also if you are on a VPS or similar, you need to allow port 8000 on the provider side, e.g. change AWS EC2 inbound rules for your instance to allow custom tcp port range 8000. Otherwise you will keep getting connection refused.
@arcsin4083
6 ай бұрын
Thank you for video! But what is your IP in the Nginx config and why do you need to specify it there explicitly? I thought it can be some kind of alias that refers to the primary netrowk interface and assigned IP to it by the network provide.
@ahmedshalaby1878
11 ай бұрын
Perfect, thanks alot! But, i have a question regarding deploying new services on the same server. Should i do it like that: 1. Deploy new django service in new container qith gunicorn. 2. Edit nginx service to serve both old and new services.
@shraveenb.s3983
2 ай бұрын
Once you make it work on nginx. Will I be able to access it with other devices using my wifi network, by typing in the public IP?
@kevinsilva-n1k
2 ай бұрын
how to accept requests from forms? i get csrf token 403 error. I am using the { % csrf_token % } and still the error.
@ismendoza
Жыл бұрын
Why your django project is out of the directory of your django_venv, I mean your "django_venv "is in the same level of "myproject"?
@ferdiansahgg
3 ай бұрын
thanks this work with ubuntu 22.04 UEFI on alibaba cloud, with django 5.0
@BlitzCringe889
Жыл бұрын
it pretty work, but at last step i can see you use your ip address to see django test page with rocket. But i can see this page only when i type :8000, when i type only my address i see "Welcome to nginx" page. Can you help me with this, please?
@imtayyabhayat
11 ай бұрын
it works fine, but while fetching files from static, it returns 403 forbidden. i've tried the permission but nothing working. What am i missing?
@amangautam1779
8 ай бұрын
Thanks for such a clear explanation!! Can anyone tell me how to config gunicorn_config.py file for respawning the worker if it failed and how to restart it automatically?
@АлекСневар
2 жыл бұрын
Wow, that was a masterpiece of explanation! Thank you 🙏
@alaminbijoy1027
3 жыл бұрын
Hey make more of these deployment type videos. They are super helpful
@f123006
3 жыл бұрын
cute voice : )))
@blingclem
Жыл бұрын
Excellent video. Can I ask where you are from?
@chessinaglimpse9899
27 күн бұрын
This was so helpful, thank you so much
@shraveenb.s3983
2 ай бұрын
I am not able to reach the static files by your method
@igribeiro_
Жыл бұрын
How can i deploy with my own Domain whitout de Port 8000
@swastikshrestha4097
3 жыл бұрын
Great video. I want to ask how do we get that ip address, do we need to buy from Internet/hosting provider or its just custom ip address?
@djangoroad
3 жыл бұрын
Thanks! I was using the IP of an instance from a cloud provider (AWS, GCP, DigitalOcean, etc). I find this way better than using my own computer because you can always delete the instance and create a new one if something goes wrong.
@defendersart3051
9 ай бұрын
Whiskey server 0:49 or what is pronounced here?
@efexzium
2 ай бұрын
Worked for me!
@dandan321321321
3 ай бұрын
Can you make a video regarding adding a domain name?
Пікірлер: 291