Thanks! I'd give more if I had more! A tutorial on point. Explanation on point. Everything was clear and perfectly explained.
@TonyTeachesTech Жыл бұрын
Wow, really appreciate it Karim! Happy to hear it. More Django tutorials to come this year :)
@shubhamgupta42373 жыл бұрын
Man! You just made our entire life! We were struggling for the past 3 days just to get a Django website up and running! Thanks for being the guardian angel.
@TonyTeachesTech3 жыл бұрын
Sure thing. Very happy to help ya out
@microlearning_2 жыл бұрын
Tried configuring a server over several days with no real success. This video was really helpful. Have being able to get the server running. Thanks
@hydara.r.70033 жыл бұрын
One of the best tutorials out there. I am saying that after trying a dozen of them with no results
@TonyTeachesTech3 жыл бұрын
Thank you very much!
@jerome_ee65222 жыл бұрын
I just deployed my api that i will use in my undergrad research. Thank you so much. Great help. Will definitely watch again to get this completely.
@boyiscola3 жыл бұрын
Fantastic! After two nights of trying to get django to work with nginx or apache this was extremely clear and to the point. Thanks!
@TonyTeachesTech3 жыл бұрын
Glad it helped!
@thepossiblechannel7800 Жыл бұрын
i am still suffering
@tirpolh89792 жыл бұрын
At present money is everything...but you provide this video free..... Thanks you so much...and Love from Bangladesh...❤️❤️❤️
@TonyTeachesTech2 жыл бұрын
You are most welcome. Cheers
@teddyfuzz52742 жыл бұрын
This is THE online resource to get a Django project deployed! I can't thank you enough, Tony, I have been struggling with this for days!
@TonyTeachesTech2 жыл бұрын
No problem Teddy
@drizzle6662 жыл бұрын
The best django deployment tutorial i found, i plan to use docker and google cloud run for my deployment, but i just want to test the server deployment to learn some details about how everything works together, thanks a lot, works like a charm
@TonyTeachesTech2 жыл бұрын
Glad I could help!
@floatpoint1050 Жыл бұрын
I bow to you. You made something that felt incredible difficult almost to easy 👍
@TonyTeachesTech Жыл бұрын
Thank you very much. So happy you got value from it :)
@mikeklem2 Жыл бұрын
Fantastic and detailed. This worked for me where others did not. Thank you
@lapiduch2 Жыл бұрын
Thank you very much, this tutorial solved my troubles with deploying django under nginx on Debian 11
@Oranges4DaWin3 жыл бұрын
Thank you so much! It's so much easier when someone explains step by step the documentation!
@TonyTeachesTech3 жыл бұрын
Glad it was helpful!
@imtayyabhayat Жыл бұрын
Thank you man, still the best video… with the best explanation… really appreciated
@TonyTeachesTech Жыл бұрын
Glad you liked it!
@chaitanya59973 жыл бұрын
i almost wated 4 days in it u saved my life bro thank u
@TonyTeachesTech3 жыл бұрын
You're welcome
@borgestheborg4 жыл бұрын
This literally could not have come at a better time! This is exactly what I was looking for. Liked and subbed!
@TonyTeachesTech4 жыл бұрын
Appreciate it! Thanks for letting me know. I spend a lot of time on my videos and never know if people will find them valuable :)
@chrishicks76306 ай бұрын
Excellent tutorial. Thankyou.
@apacheschannel6407 Жыл бұрын
still a very valuable information! I am grateful for finding this tutorial! Thanks a lot for sharing your expertise with us!!
@tiagomedina34073 жыл бұрын
you're monster brother... saving an enthusiast in python/django...thanks
@TonyTeachesTech3 жыл бұрын
Sure thing!
@muhendisim2 жыл бұрын
2022 still perfectly working. great video. It's really helpful. Thank you so much bro! 체크 해야 할 부분 33:01 systemd 실행
@danielgr953 жыл бұрын
Hi Tony. Great tutorial, I really appreciate it! I want to add a little thing, perhaps someone is running into the same problem. When setting the uwsgi.ini file (around 28:00) , I had to comment out the ' home' line for it to work. Logs showed an error when mapping the PYTHONHOME, commenting that line out solved the issue.
@TonyTeachesTech3 жыл бұрын
Thanks for sharing. This will hopefully help out others
@srinivasguptha95383 жыл бұрын
Thank you so much. Explained a complicated topic very clearly.
@TonyTeachesTech3 жыл бұрын
You are welcome!
@shubhamgupta77303 жыл бұрын
Best video on the internet. Thank you so much for explanation. ✌️
@TonyTeachesTech3 жыл бұрын
Glad it was helpful!
@drmikeyg4 жыл бұрын
Good job, keep the videos coming. Thanks for your efforts.
@TonyTeachesTech4 жыл бұрын
Thanks, will do!
@rainiskey Жыл бұрын
For anyone having trouble installing uwsgi or any other package for that matter into ur virtual enviroment, make sure the user ur working with owns the virtual enviroment. Do not use sudo, cause you really dont want any of these packages to be installed globably. Also, uwsgi depends on gcc, python dev and wheels. Hope this helps anyone stuck. (any packaged with pip)
@eji75522 жыл бұрын
AWESOME TUTORIAL!
@TonyTeachesTech2 жыл бұрын
Thanks!
@vahid-m8b7 ай бұрын
thank you for such helpful content
@jasiggi9573 жыл бұрын
thx for this video. i am struggeling with apache and now use nginx.
@TonyTeachesTech3 жыл бұрын
Good luck!
@IsaacLopezLopez11 ай бұрын
Buen material Antonio!
@hodoros72552 жыл бұрын
Subscribed, thank you for this. Still not 100% clear on why nginx is needed here - I heard your explaination in the video that nginx is "better" at handling static files, but that didn't really sound like concrete answer. Would you be able to expand on that a little bit? Thanks! Side question - the static files that are generated with collectstatic, what are those? Just defaults that get shipped with Django? Thanks again for this great tutorial
@computersindia2 жыл бұрын
Excellent Explanation!!
@yucelmutlusoy Жыл бұрын
Thanks for the upload. Excellent tutorial 👍 are you using virtual box for local development?
@TonyTeachesTech Жыл бұрын
Thank you! Yes, sometimes, I just made a video about this here kzbin.info/www/bejne/raLQkHeOnZWDorM
@umarchy3 жыл бұрын
Thanks for making the video. Subbed.
@TonyTeachesTech3 жыл бұрын
Much appreciated Umar!
@alejandrocr9293 Жыл бұрын
I really love you man. So many thanks!
@TonyTeachesTech Жыл бұрын
Happy to help!
@alexdin15658 ай бұрын
thanks Tony, please can you make a video on django and docker deployment?
@threekingdoms993 жыл бұрын
Thank you, Tony! This tutorial is very useful!
@TonyTeachesTech3 жыл бұрын
You're very welcome!
@mohammedumargigani1297 Жыл бұрын
we really loved your video and follow all steps and successfully deployed it on our cloud server can you please make a video how we can run django app on docker ?
@TheEaglesBasket3 жыл бұрын
Hi. This looks like a single server for the website. Isn't that vulnerable if something happens to hardware, connection or when maintenance? Is it possible to have two servers working in different locations for the same website?
@TonyTeachesTech3 жыл бұрын
I see what you're saying about having multiple applications on a single server. Yes technically I guess you're right that if the server is compromised, every application is vulnerable. Choosing to host on separate servers could slow down an attacker, but probably not stop him entirely if he's determined enough. Always remember that anything connected to the internet is never truly secure. It's certainly possible to host different applications on different servers for the same website. This of course would add in network latency when the servers communicate with each other. Honestly I don't have much experience in this realm, but that's just my 2 cents :)
@devanshuchaudhari87183 жыл бұрын
Thank you. Genuinely, THANK YOU!
@TonyTeachesTech3 жыл бұрын
You're welcome!
@engrnasirshah44263 жыл бұрын
You Explained Everything very well, thanks
@TonyTeachesTech3 жыл бұрын
You’re welcome!
@jedawuku88332 жыл бұрын
I am truly greatful for this! Thank you! ☺️
@TonyTeachesTech2 жыл бұрын
You're so welcome!
@kevinbisneau3704 Жыл бұрын
I found this video after discovering your current Django videos. Is this video still relevant today or do you plan to make a new video on deployment with Docker?
@NiteshSingh-xe5nv3 жыл бұрын
thankyou so much .. you explained every step very well
@TonyTeachesTech3 жыл бұрын
You are welcome 😊
@nhwhn2 жыл бұрын
You will win the NOBEL PEACE Prize one day. Thank you
@eternalfootprintsmissions32532 жыл бұрын
Thanks a lot, Tom this was really helpful
@TonyTeachesTech2 жыл бұрын
You're welcome. It's Tony btw :)
@ibuyukerdem Жыл бұрын
Hello, after 2 days of struggling with this installation, I found your video and explanations. First of all, thank you very much. Although I used all the parameters such as user and domain as yours, I encountered some errors. I wanted to write some notes in case there are friends who are experiencing these. 1- First of all, I used Python 3.10 version. I couldn't do it with 3.12. I installed dev with sudo apt-get install python3.10-dev command of the same version. It didn't work with any other version. 2- When I proceeded according to your explanations, I was getting 502 bad gateway error error at the end. Nginx could not access the relevant files. I saw this in the Nginx logs. after this stage, I solved the problem by taking the udoms user and the nginx user to the same group. But it took me a long time to solve this. After all, I am not a system administrator or I don't have much linux knowledge. I used sudo usermod -g www-data udoms command to do this. I thank Tony again...
@matt_vid4 ай бұрын
Thank you so much, this needs to be at the top comments, it works now smoothly
@matt_vid4 ай бұрын
Althougth, the first point nowadays works, because I am running at python 3.12. And succesfully installed the app python3.12-dev. And as you said, there was an 502 bad gateway because of lack of permissions of my to the primary group of www-data. I was thinking about these command: gpasswd -a www-data But it didn't and yours exactly worked. I dont know why but it seems to be the primary group as a instead of just adding the to the group . It seems weird error, because I do this command in another server(same type ubuntu) and works perfectly.
@fardarshan2 жыл бұрын
is installing and configuring Gunicorn instead of uWSGI the same?
@demonsjostle3 жыл бұрын
Thanks for this tutorial.
@TonyTeachesTech2 жыл бұрын
You're welcome!
@saikatjaman20043 жыл бұрын
ur the one that I was looking for, thanks bro, do u have any tutorial on how to connect Django with a database like MySQL?
@TonyTeachesTech3 жыл бұрын
Are you familiar with Django models? docs.djangoproject.com/en/3.1/topics/db/models/. It's a way of abstracting database interaction in Django. That would be my suggestion. You'll still need a database of some sort like MySQL. I will have a video on this topic in the next few months :)
@shaikbyte3 жыл бұрын
Excellent dude
@TonyTeachesTech3 жыл бұрын
Thank you! Cheers!
@_CS_DeepMehta3 жыл бұрын
you made my day dude :)
@TonyTeachesTech3 жыл бұрын
Happy to hear that 😁
@shinichi9do2 жыл бұрын
Thank you so much brother, really helped me. :)
@freelancershamim5004 жыл бұрын
Yes bro, It's really helpful. Thank you man
@TonyTeachesTech4 жыл бұрын
Always welcome
@saigayatriprasad96934 жыл бұрын
Excellent tutorial. Thank you :)
@TonyTeachesTech4 жыл бұрын
You're very welcome!
@arnoldwolfstein2 жыл бұрын
What is the font? Looks amazing.
@gianfrancotan4384 Жыл бұрын
What if it is in prod? Should same step be applied?
@tulseluper70512 жыл бұрын
Thank you very much for this through reality-show-like tutorial! Much helpful! :-)
@pandahugs5 Жыл бұрын
Hi Tony, I was wondering if this is compatible with Dreamhost or where Dreamhost comes into play in this stack? Thanks!
@mustafaberker14532 жыл бұрын
Hi, I have a question. Does this method works with Plesk panel on Ubuntu LTS (Apache web server and nginx as proxy server)? Actually, I have plesk panel and couldn't run Django app with Postgre SQL database (database has no issue, it works fine) Please record a video about plesk panel for Django installation...
@NimeshKumar0313 жыл бұрын
Thanks a lot. Amazing tutorial. One quick question. How to restart uwsgi whenever there is a change in the code?
@TonyTeachesTech3 жыл бұрын
I typically restart the emperor service systemctl start emperor.uwsgi.service
@shreyaspatil48614 жыл бұрын
Can you please make one video on deploying flask with uwsgi , nginx . Thanks :)
@TonyTeachesTech3 жыл бұрын
Hi, sorry I'm not familiar with flash
@panmaciej20163 жыл бұрын
Hi! I have a issue.. Unitl uwsgi --http :8000 --module microdomains.wsgi, everything is fine but when i make a nginx file and make everything like in tutorial, when i download media.gif and make collectstatic then try to go ip/media/media.gif return 404 not found. uwsgi --socket mysite.sock --module mysite.wsgi --chmod-socket=666 i have a 502 gateway, i tried with 664 socket, without socker, i research all internet and cant find resolve
@tts19583 жыл бұрын
I have the same issue. I can't fix it since last week, with the whole power of the internet...
@codeboymaster5055 Жыл бұрын
did you fix it. İ have the same problem
@nitensapkota8606 Жыл бұрын
Same here guys please provide info if got any information
@DANIELTORRES-lk2ni4 ай бұрын
me choque con el mismo problema... permiso denegado.. y no encuentro la solución correcta
@NoajmIsMyName2 жыл бұрын
23:25 I think it is due to port forwarding ?
@NoajmIsMyName2 жыл бұрын
Thank you Tony anyway, I been looking for video like this for a year. As you said info around all the internet either not [clear] or not [complete]
@maxpower77353 жыл бұрын
Thank you sooo much for the tutorial!!
@TonyTeachesTech3 жыл бұрын
No problem 😊
@alexlindgren13 жыл бұрын
Awesome tutorial man, love your pedagoc approach. Any chance you could update this to be using Docker and docker-compose?
@TonyTeachesTech3 жыл бұрын
Thanks Alexander! Right now I'm clueless when it comes to Docker. I plan to look into it next year
@PedroHenrique-vv7mk Жыл бұрын
Valeu!
@TonyTeachesTech Жыл бұрын
Appreciate it Pedro 🙏
@chillaxbaap Жыл бұрын
you basically just now created the Django project, how come the localhost got linked with your domain?
@siroj42953 жыл бұрын
Wow, thanks dude!
@TonyTeachesTech3 жыл бұрын
You bet!
@nitensapkota8606 Жыл бұрын
What should be content and permission of .sock file mine is empty ? error i am getting permission denied when while connecting to upstream client
@asimabusallam31473 жыл бұрын
good
@TonyTeachesTech3 жыл бұрын
Thanks
@amzarahamed15362 жыл бұрын
Why do we need to let Django know where the static files are? Aren't the nginx the one which serves static & media files?
@kapitankidlattv96132 жыл бұрын
So after this, I just have to copy my project to the server and that's it?
@michazarod87422 жыл бұрын
Hi there, Tony! Could you please explain how the socket is created? What creates it and at which point? Or does it need to be created manually somehow?
@TonyTeachesTech2 жыл бұрын
The socket is automatically created when you do run the uwsgi command
@michazarod87422 жыл бұрын
@@TonyTeachesTech That's the last piece missing for me. Thank you. :)
@albermonianin14142 жыл бұрын
ca you make one about connecting django to oracle autonomous database please?
@TonyTeachesTech2 жыл бұрын
I haven't worked with oracle autonomous db
@danielstrub30643 жыл бұрын
Thank you so much, you were such a big help!!
@TonyTeachesTech3 жыл бұрын
Glad it helped! All the best Daniel
@georgesmith30224 жыл бұрын
Hi tony, this was very good tutorial. if nginx is on a different server than wsgi/django can you use a socket for communication or do I have to use http?
@TonyTeachesTech4 жыл бұрын
I believe sockets are only local, so you would have to use http
@hope33532 жыл бұрын
awesome
@TonyTeachesTech2 жыл бұрын
:)
@yuribranco Жыл бұрын
Wonderful tutorial thank you. On step 5 I got a 403 forbidden when trying to acces the media, I reviewed and everything appears to be correct. What can I do?
@TonyTeachesTech Жыл бұрын
This should help kzbin.info/www/bejne/ZmK3Zn2AfLxnlcU
@eldal3ie4332 жыл бұрын
Thank you very much broo
@TonyTeachesTech2 жыл бұрын
Welcome
@oseebotendju912010 ай бұрын
Hello Tony, I hope you're going well ! First, thank you so much for your time and this tutorial. So I've an issue, please can you explain me what I wanna do to get mysite.sock ? I'm following your tuto and you don't tell any worlds, how you have microdomains.sock in your NGINX conf file. Thank you so much for all.
@alaqsaretowijaya3744 Жыл бұрын
after running the uwsgi --socket (socketname).sock --module (modulename).wsgi --chmod-socket=666 my nginx still having bad gateway. what could be the issue?
@ethanlee9633 Жыл бұрын
Same issue here. Did you ever resolve the problem?
@iKostanCom2 жыл бұрын
Hi all. I have a problem here at 8:20, getting time out while trying to access the test server using my domain name (connection time out). Using Ubuntu server 22.04 (Oracle free tier VPS). Linux firewall is disabled. I also added an ingress rule for port 8000. Any ideas what could be the problem? Thanks.
@adamfatyga7977 Жыл бұрын
Just use Your IP adres from: hostname -I. Ofc on file and on browser
@sorkerlimon6424 Жыл бұрын
I have been trying lot's of time but can't help me sir .. always show 502 error
@Jieryeson279 ай бұрын
No me funciona en ubuntu 22.04! pipipi
@MuhammadRizal-hw8vy3 жыл бұрын
Hi Tony. Great tutorial, I really appreciate it. You were such a big help. Does this uwsgi replace gunicorn? I'm still confused about the gunicorn. Do I need to install Gunicorn for production?
@TonyTeachesTech3 жыл бұрын
uWSGI is an alternative to gunicorn
@bacon374603 жыл бұрын
Thank you so much for the video. A question, I have an environment variable file ".env" that includes key/value pairs. How can I use them in uwsgi?
@TonyTeachesTech3 жыл бұрын
I don’t know sorry
@abiolajohnson52832 жыл бұрын
Thank you so much!
@andresdemillos012 жыл бұрын
Muchas gracias muy completo tu video y me ayudo a reforsar conceptos (Y)
@heljhumenad3 жыл бұрын
this what i need to understand deployment of django web app in web
@TonyTeachesTech3 жыл бұрын
Great!
@azaazkhan55982 жыл бұрын
when i run my django project it give me errorr django.db.utils.OperationalError: connection to server at " ", port 5432 failed: Connection refused (0x0000274D/10061) Is the server running on that host and accepting TCP/IP connections? can u please solve my problem
@TonyTeachesTech2 жыл бұрын
It sounds like the port is closed
@gainzbah3 жыл бұрын
Thanks Tony for your hard work. I would like to know if the config can work in local network. I have my project and I want to run in local network
@TonyTeachesTech3 жыл бұрын
Yes I don't see why not. You'd have to go to the IP address instead of a domain name
@Dan-bd7lj3 жыл бұрын
I need help. I dont understand how the NGINX config file is supposed to look like. I'm running this on a pi. I can't get past the NGINX part. What path do I use for my upstream django line? What about the server_name line? Im just using my IP, not a domain?
@TonyTeachesTech3 жыл бұрын
Take a look at the Nginx config file here tonyteaches.tech/raspberry-pi-wordpress/
@Dan-bd7lj3 жыл бұрын
@@TonyTeachesTech Thanks. In the end I was able to get it working after some trouble shooting. I just went though your other videos on getting SSL certs and getting django production ready. All excellent vids. I just have one question though, How exactly would we restart or stop the server if we wanted to? Whats the difference between using NGINX (/etc/init.d/nginx restart) or what you used (systemctl restart emperor.uwsgi.service)? Thanks so much!
@Dan-bd7lj3 жыл бұрын
@@TonyTeachesTech I actually have one more question for you, if you don't mind. I am unable to access the production site from within my own network. I totally understand why, due to the way NAT and port forwarding works, and I have been using a VPN to actually reach my site. You seem to be able to reach your site from within the same network. How do you go about this?
@adamfatyga7977 Жыл бұрын
Django doesn't work on publlic IP, but Nginx works. Where i can search for help?
@Joshua-ot7fu3 жыл бұрын
Thank you so much....
@TonyTeachesTech3 жыл бұрын
You're welcome Joshua
@alessandroscimone54632 жыл бұрын
But why am I only finding you now? because! Good!
@TonyTeachesTech2 жыл бұрын
Happy ya found me :)
@ProjectileGrommet3 жыл бұрын
You're doing this on a Mac right? Why can't I use the apt-get package manager but you can?
@ProjectileGrommet3 жыл бұрын
I am stupid and now realize ur distro is ubuntu 20.04
@TonyTeachesTech2 жыл бұрын
Hahah
@brandonclark48123 жыл бұрын
Great tutorial! Had a question though. My webpage is now serving the static files for the website, but not for the admin portion. How would I fix this? Thanks I’m advance!
@TonyTeachesTech3 жыл бұрын
Hmm I'm not sure. I'd suggest taking a look at the page source for the admin page for clues. Pay particular attention to the CSS/JS links to see what the paths look like.
@dpixfunfunnyvideos53632 жыл бұрын
Python manage.py collectstatic After setting STATIC ROOT on your django settings.py
@esantix3 жыл бұрын
Thanks man!
@TonyTeachesTech3 жыл бұрын
No problem!
@wpyoga3 жыл бұрын
Thank you for the video. With respect, I think uWSGI doesn't call the "Django backend" but the "Django app". And that "Django app" does not call Python -- rather, it is interpreted by the Python interpreter. Hope this clears up any confusion for the viewers.
@TonyTeachesTech3 жыл бұрын
Thanks for clarifying William :)
@zakarialazhari33633 жыл бұрын
Hi Tony, please help me on this one, following all your instructions made my website running perfectly, but now I need to install a second website, how to do so in a practical manner?