Django in Production with Apache Web Server (includes info about nginx, mod_wsgi, wsgi pre-loading)
HTML-код
- Опубликовано: 5 фев 2025
- #production #apache #django #mod_wsgi #wsgi #nginx
Apache HTTP Server is without doubt one of the best web server available. In this screencast you will learn first of all why to consider apache for production, you will learn some important concepts which will ease you friendship with Apache and most importantly how to quickly deploy a django project with Apache Web Server.
Notice that in this screencast I use dev version of django settings i.e. DEBUG=True. On real production machine you must change that to DEBUG=False.
The way you explain why you do each step is super helpful. Thank you so much!
What I liked the most of this tutorial is that some errors were intentionally generated to see the root cause of them. Good job and thanks!
Eugen thx a lot. Your tutorial brought me further than other 90 min lessons although I run a slightly different system than you described. Saying your infos are made so generic that it is easy to transfer them. great background infos as well.
The best explanation I had found.
Very nice lesson, thanks a lot. Clear and concise.
very good , very easy and very simple way to lean not simple topics.
thank you very much ❤
Great great video and information. Thank you.
это отличное объяснение. спасибо. Стронг рашн аксент is funny too)
Excellent! Thanks!
забавно что хоть автор говорит на английском, ютуб распознает это как русский 🙃 и предлагает русские субтитры
Thanks for the tutorial!
another great video, thank you.
Thank you!
good video
Thanks
Please do a video on clustering and loadbalance with apache+mod_wsgi
Thanks sir 👍
Tks a lot from Brazil
It was very useful, thanks!
I'm using apache2 2.4.52 (ubuntu), and the file system is completely different
it uses a enable or available method
Very helpful video, thank!
Well done!
Question: I have Plesk panel and ubuntu 20.04 LTS version. Can I use this method? or Should I use passenger method ?
When I updated my python code it said "Apache WSGI Script Error"
Thanks for the tutorial. Though I came across an issue: in my setup I get both the html source and the static files (an image and a css file), the contents are correctly rendered but the browser is stuck with "Transferring data from" as if it was still waiting for something else to arrive. As well, I cannot login as administrator, though I fill in the admin login form with the right credentials. This does not occur whenever a simple text is sent with "return HttpResponse" (no static files involved). And, as well, this does not occur if I use STATICFILES_DIRS instead of STATIC_ROOT and I resort to the "built-in" development server. Why? Thanks in advance!
Thank you. My only issue is that I can't find the modules directory in etc/apache2/ (I'm using Ubuntu)
Me too..
It is in /usr/lib/apache2/modules
Thank you for your video! I have configured my website and put in in production. However, sometimes there's an error "Content-Length mismatch" for some images and browser cannot load them from the server but if you try to open the broken image on a new window you, you can see the image. What might cause this issue?
how can i access the pro video lecture on APACHE + mod_wsgi
However, in terms of microservices, apache2 and django are in different container. This would not work.
starts at 6:39, thank me later
hi how to run multiple django sites on mod_wsgi on xampp
❤️ thanks bro
Thanks!!!
👏🏽
can you send me the project github that your using for testing
Субтитры отпад12:42😂
You'r Russian Genius)
what happens when i hit python manage.py runserver??
You will have django's built-in web server running on port 8000. Because this is different port ( != 8001) it will not interfere with Apache Web Server. In other words, you will have two running web servers - one on port 8000 and other one on port 8001.
@@djangolessons4614 django use built-in web server?? its' already existing web server(like apache, Xamp, etc) or django own(there is any name)?
@@KrishnaManohar8021 yes, Django uses a buit-in web server. But it is not like Apache. It is suitable ONLY for local development and only with DEBUG=True. Don't use it in production.
@@djangolessons4614 thanks for the update.