How to Deploy Django on Nginx with uWSGI (full tutorial)

  Рет қаралды 93,348

Tony Teaches Tech

Tony Teaches Tech

Күн бұрын

Пікірлер: 336
@codewkarim
@codewkarim Жыл бұрын
Thanks! I'd give more if I had more! A tutorial on point. Explanation on point. Everything was clear and perfectly explained.
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Wow, really appreciate it Karim! Happy to hear it. More Django tutorials to come this year :)
@shubhamgupta4237
@shubhamgupta4237 3 жыл бұрын
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.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sure thing. Very happy to help ya out
@microlearning_
@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.7003
@hydara.r.7003 3 жыл бұрын
One of the best tutorials out there. I am saying that after trying a dozen of them with no results
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thank you very much!
@jerome_ee6522
@jerome_ee6522 2 жыл бұрын
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.
@boyiscola
@boyiscola 3 жыл бұрын
Fantastic! After two nights of trying to get django to work with nginx or apache this was extremely clear and to the point. Thanks!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Glad it helped!
@thepossiblechannel7800
@thepossiblechannel7800 Жыл бұрын
i am still suffering
@tirpolh8979
@tirpolh8979 2 жыл бұрын
At present money is everything...but you provide this video free..... Thanks you so much...and Love from Bangladesh...❤️❤️❤️
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You are most welcome. Cheers
@teddyfuzz5274
@teddyfuzz5274 2 жыл бұрын
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!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
No problem Teddy
@drizzle666
@drizzle666 2 жыл бұрын
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
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Glad I could help!
@floatpoint1050
@floatpoint1050 Жыл бұрын
I bow to you. You made something that felt incredible difficult almost to easy 👍
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Thank you very much. So happy you got value from it :)
@mikeklem2
@mikeklem2 Жыл бұрын
Fantastic and detailed. This worked for me where others did not. Thank you
@lapiduch2
@lapiduch2 Жыл бұрын
Thank you very much, this tutorial solved my troubles with deploying django under nginx on Debian 11
@Oranges4DaWin
@Oranges4DaWin 3 жыл бұрын
Thank you so much! It's so much easier when someone explains step by step the documentation!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Glad it was helpful!
@imtayyabhayat
@imtayyabhayat Жыл бұрын
Thank you man, still the best video… with the best explanation… really appreciated
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Glad you liked it!
@chaitanya5997
@chaitanya5997 3 жыл бұрын
i almost wated 4 days in it u saved my life bro thank u
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome
@borgestheborg
@borgestheborg 4 жыл бұрын
This literally could not have come at a better time! This is exactly what I was looking for. Liked and subbed!
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
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 :)
@chrishicks7630
@chrishicks7630 6 ай бұрын
Excellent tutorial. Thankyou.
@apacheschannel6407
@apacheschannel6407 Жыл бұрын
still a very valuable information! I am grateful for finding this tutorial! Thanks a lot for sharing your expertise with us!!
@tiagomedina3407
@tiagomedina3407 3 жыл бұрын
you're monster brother... saving an enthusiast in python/django...thanks
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sure thing!
@muhendisim
@muhendisim 2 жыл бұрын
2022 still perfectly working. great video. It's really helpful. Thank you so much bro! 체크 해야 할 부분 33:01 systemd 실행
@danielgr95
@danielgr95 3 жыл бұрын
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.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thanks for sharing. This will hopefully help out others
@srinivasguptha9538
@srinivasguptha9538 3 жыл бұрын
Thank you so much. Explained a complicated topic very clearly.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You are welcome!
@shubhamgupta7730
@shubhamgupta7730 3 жыл бұрын
Best video on the internet. Thank you so much for explanation. ✌️
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Glad it was helpful!
@drmikeyg
@drmikeyg 4 жыл бұрын
Good job, keep the videos coming. Thanks for your efforts.
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
Thanks, will do!
@rainiskey
@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)
@eji7552
@eji7552 2 жыл бұрын
AWESOME TUTORIAL!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks!
@vahid-m8b
@vahid-m8b 7 ай бұрын
thank you for such helpful content
@jasiggi957
@jasiggi957 3 жыл бұрын
thx for this video. i am struggeling with apache and now use nginx.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Good luck!
@IsaacLopezLopez
@IsaacLopezLopez 11 ай бұрын
Buen material Antonio!
@hodoros7255
@hodoros7255 2 жыл бұрын
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
@computersindia
@computersindia 2 жыл бұрын
Excellent Explanation!!
@yucelmutlusoy
@yucelmutlusoy Жыл бұрын
Thanks for the upload. Excellent tutorial 👍 are you using virtual box for local development?
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Thank you! Yes, sometimes, I just made a video about this here kzbin.info/www/bejne/raLQkHeOnZWDorM
@umarchy
@umarchy 3 жыл бұрын
Thanks for making the video. Subbed.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Much appreciated Umar!
@alejandrocr9293
@alejandrocr9293 Жыл бұрын
I really love you man. So many thanks!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Happy to help!
@alexdin1565
@alexdin1565 8 ай бұрын
thanks Tony, please can you make a video on django and docker deployment?
@threekingdoms99
@threekingdoms99 3 жыл бұрын
Thank you, Tony! This tutorial is very useful!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're very welcome!
@mohammedumargigani1297
@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 ?
@TheEaglesBasket
@TheEaglesBasket 3 жыл бұрын
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?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
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 :)
@devanshuchaudhari8718
@devanshuchaudhari8718 3 жыл бұрын
Thank you. Genuinely, THANK YOU!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome!
@engrnasirshah4426
@engrnasirshah4426 3 жыл бұрын
You Explained Everything very well, thanks
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You’re welcome!
@jedawuku8833
@jedawuku8833 2 жыл бұрын
I am truly greatful for this! Thank you! ☺️
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're so welcome!
@kevinbisneau3704
@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-xe5nv
@NiteshSingh-xe5nv 3 жыл бұрын
thankyou so much .. you explained every step very well
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You are welcome 😊
@nhwhn
@nhwhn 2 жыл бұрын
You will win the NOBEL PEACE Prize one day. Thank you
@eternalfootprintsmissions3253
@eternalfootprintsmissions3253 2 жыл бұрын
Thanks a lot, Tom this was really helpful
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome. It's Tony btw :)
@ibuyukerdem
@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_vid
@matt_vid 4 ай бұрын
Thank you so much, this needs to be at the top comments, it works now smoothly
@matt_vid
@matt_vid 4 ай бұрын
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.
@fardarshan
@fardarshan 2 жыл бұрын
is installing and configuring Gunicorn instead of uWSGI the same?
@demonsjostle
@demonsjostle 3 жыл бұрын
Thanks for this tutorial.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome!
@saikatjaman2004
@saikatjaman2004 3 жыл бұрын
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?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
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 :)
@shaikbyte
@shaikbyte 3 жыл бұрын
Excellent dude
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thank you! Cheers!
@_CS_DeepMehta
@_CS_DeepMehta 3 жыл бұрын
you made my day dude :)
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Happy to hear that 😁
@shinichi9do
@shinichi9do 2 жыл бұрын
Thank you so much brother, really helped me. :)
@freelancershamim500
@freelancershamim500 4 жыл бұрын
Yes bro, It's really helpful. Thank you man
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
Always welcome
@saigayatriprasad9693
@saigayatriprasad9693 4 жыл бұрын
Excellent tutorial. Thank you :)
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
You're very welcome!
@arnoldwolfstein
@arnoldwolfstein 2 жыл бұрын
What is the font? Looks amazing.
@gianfrancotan4384
@gianfrancotan4384 Жыл бұрын
What if it is in prod? Should same step be applied?
@tulseluper7051
@tulseluper7051 2 жыл бұрын
Thank you very much for this through reality-show-like tutorial! Much helpful! :-)
@pandahugs5
@pandahugs5 Жыл бұрын
Hi Tony, I was wondering if this is compatible with Dreamhost or where Dreamhost comes into play in this stack? Thanks!
@mustafaberker1453
@mustafaberker1453 2 жыл бұрын
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...
@NimeshKumar031
@NimeshKumar031 3 жыл бұрын
Thanks a lot. Amazing tutorial. One quick question. How to restart uwsgi whenever there is a change in the code?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
I typically restart the emperor service systemctl start emperor.uwsgi.service
@shreyaspatil4861
@shreyaspatil4861 4 жыл бұрын
Can you please make one video on deploying flask with uwsgi , nginx . Thanks :)
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Hi, sorry I'm not familiar with flash
@panmaciej2016
@panmaciej2016 3 жыл бұрын
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
@tts1958
@tts1958 3 жыл бұрын
I have the same issue. I can't fix it since last week, with the whole power of the internet...
@codeboymaster5055
@codeboymaster5055 Жыл бұрын
did you fix it. İ have the same problem
@nitensapkota8606
@nitensapkota8606 Жыл бұрын
Same here guys please provide info if got any information
@DANIELTORRES-lk2ni
@DANIELTORRES-lk2ni 4 ай бұрын
me choque con el mismo problema... permiso denegado.. y no encuentro la solución correcta
@NoajmIsMyName
@NoajmIsMyName 2 жыл бұрын
23:25 I think it is due to port forwarding ?
@NoajmIsMyName
@NoajmIsMyName 2 жыл бұрын
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]
@maxpower7735
@maxpower7735 3 жыл бұрын
Thank you sooo much for the tutorial!!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
No problem 😊
@alexlindgren1
@alexlindgren1 3 жыл бұрын
Awesome tutorial man, love your pedagoc approach. Any chance you could update this to be using Docker and docker-compose?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thanks Alexander! Right now I'm clueless when it comes to Docker. I plan to look into it next year
@PedroHenrique-vv7mk
@PedroHenrique-vv7mk Жыл бұрын
Valeu!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Appreciate it Pedro 🙏
@chillaxbaap
@chillaxbaap Жыл бұрын
you basically just now created the Django project, how come the localhost got linked with your domain?
@siroj4295
@siroj4295 3 жыл бұрын
Wow, thanks dude!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You bet!
@nitensapkota8606
@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
@asimabusallam3147
@asimabusallam3147 3 жыл бұрын
good
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thanks
@amzarahamed1536
@amzarahamed1536 2 жыл бұрын
Why do we need to let Django know where the static files are? Aren't the nginx the one which serves static & media files?
@kapitankidlattv9613
@kapitankidlattv9613 2 жыл бұрын
So after this, I just have to copy my project to the server and that's it?
@michazarod8742
@michazarod8742 2 жыл бұрын
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?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
The socket is automatically created when you do run the uwsgi command
@michazarod8742
@michazarod8742 2 жыл бұрын
@@TonyTeachesTech That's the last piece missing for me. Thank you. :)
@albermonianin1414
@albermonianin1414 2 жыл бұрын
ca you make one about connecting django to oracle autonomous database please?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
I haven't worked with oracle autonomous db
@danielstrub3064
@danielstrub3064 3 жыл бұрын
Thank you so much, you were such a big help!!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Glad it helped! All the best Daniel
@georgesmith3022
@georgesmith3022 4 жыл бұрын
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?
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
I believe sockets are only local, so you would have to use http
@hope3353
@hope3353 2 жыл бұрын
awesome
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
:)
@yuribranco
@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
@TonyTeachesTech Жыл бұрын
This should help kzbin.info/www/bejne/ZmK3Zn2AfLxnlcU
@eldal3ie433
@eldal3ie433 2 жыл бұрын
Thank you very much broo
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Welcome
@oseebotendju9120
@oseebotendju9120 10 ай бұрын
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
@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
@ethanlee9633 Жыл бұрын
Same issue here. Did you ever resolve the problem?
@iKostanCom
@iKostanCom 2 жыл бұрын
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
@adamfatyga7977 Жыл бұрын
Just use Your IP adres from: hostname -I. Ofc on file and on browser
@sorkerlimon6424
@sorkerlimon6424 Жыл бұрын
I have been trying lot's of time but can't help me sir .. always show 502 error
@Jieryeson27
@Jieryeson27 9 ай бұрын
No me funciona en ubuntu 22.04! pipipi
@MuhammadRizal-hw8vy
@MuhammadRizal-hw8vy 3 жыл бұрын
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?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
uWSGI is an alternative to gunicorn
@bacon37460
@bacon37460 3 жыл бұрын
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?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
I don’t know sorry
@abiolajohnson5283
@abiolajohnson5283 2 жыл бұрын
Thank you so much!
@andresdemillos01
@andresdemillos01 2 жыл бұрын
Muchas gracias muy completo tu video y me ayudo a reforsar conceptos (Y)
@heljhumenad
@heljhumenad 3 жыл бұрын
this what i need to understand deployment of django web app in web
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Great!
@azaazkhan5598
@azaazkhan5598 2 жыл бұрын
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
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
It sounds like the port is closed
@gainzbah
@gainzbah 3 жыл бұрын
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
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Yes I don't see why not. You'd have to go to the IP address instead of a domain name
@Dan-bd7lj
@Dan-bd7lj 3 жыл бұрын
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?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Take a look at the Nginx config file here tonyteaches.tech/raspberry-pi-wordpress/
@Dan-bd7lj
@Dan-bd7lj 3 жыл бұрын
@@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-bd7lj
@Dan-bd7lj 3 жыл бұрын
@@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
@adamfatyga7977 Жыл бұрын
Django doesn't work on publlic IP, but Nginx works. Where i can search for help?
@Joshua-ot7fu
@Joshua-ot7fu 3 жыл бұрын
Thank you so much....
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome Joshua
@alessandroscimone5463
@alessandroscimone5463 2 жыл бұрын
But why am I only finding you now? because! Good!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Happy ya found me :)
@ProjectileGrommet
@ProjectileGrommet 3 жыл бұрын
You're doing this on a Mac right? Why can't I use the apt-get package manager but you can?
@ProjectileGrommet
@ProjectileGrommet 3 жыл бұрын
I am stupid and now realize ur distro is ubuntu 20.04
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Hahah
@brandonclark4812
@brandonclark4812 3 жыл бұрын
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!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
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.
@dpixfunfunnyvideos5363
@dpixfunfunnyvideos5363 2 жыл бұрын
Python manage.py collectstatic After setting STATIC ROOT on your django settings.py
@esantix
@esantix 3 жыл бұрын
Thanks man!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
No problem!
@wpyoga
@wpyoga 3 жыл бұрын
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.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thanks for clarifying William :)
@zakarialazhari3363
@zakarialazhari3363 3 жыл бұрын
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?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
I don't know Zakaria, sorry
@zakarialazhari3363
@zakarialazhari3363 3 жыл бұрын
It's okay, thank you for the amazing video
WSGI for Web Developers (Ryan Wilson-Perkin)
24:52
PyCon Canada
Рет қаралды 96 М.
The NGINX Crash Course
50:53
Laith Academy
Рет қаралды 498 М.
NGINX Explained - What is Nginx
14:32
TechWorld with Nana
Рет қаралды 281 М.
Deploying Django with Docker Compose
2:24:50
London App Developer
Рет қаралды 91 М.
docker stack is my new favorite way to deploy to a VPS
27:47
Dreams of Code
Рет қаралды 120 М.
Problems You will Encounter on Linux (and How to Solve Them)
23:01
Rob Braxman Tech
Рет қаралды 155 М.
Deploy a Django web app with Nginx to Amazon EC2
35:26
Cloud With Django
Рет қаралды 46 М.
You want a real Name Server at home? // DNS
32:31
Christian Lempa
Рет қаралды 281 М.
Docker | Towards serving React (Nginx) with Django API (gunicorn)
48:35
Docker - Containerize a Django App
24:09
Andreas Jud
Рет қаралды 6 М.