All You Need to Know about WSGI

Поделиться
HTML-код
  • Опубликовано: 10 фев 2025
  • #django #wsgi #python #web #http #programming
    In this lesson we will answer questions like what is WSGI? Why you need it ? Why you need an application (like gunicorn or uwsgi) server at all?
    You probably noticed that i did not publish any lesson since some time... this is because I was busy with another project my main Papermerge project - www.papermerge.com - I even got some clients, yey! Anyway, I will publish all PRO lessons for free! Here is the first one!
    Enjoy!

Комментарии • 119

  • @djangolessons4614
    @djangolessons4614  4 года назад +24

    Hi! You probably noticed that i did not publish any lesson since some time... this is because I was busy with my main project Papermerge - www.papermerge.com - I even got some clients, yey! Anyway, I will publish all PRO lessons for free! Here is the first one!

  • @vinamarora7049
    @vinamarora7049 3 года назад +10

    Explaining such things along with 'why they were developed' gives the best understanding. Thank you!

  • @acrossover
    @acrossover 3 года назад +12

    nowadays, everyone is surrounded by massive amount of documents, tutorials etc. it is a luxury to come across a short & to-the-point, clear and well-explained tutorial. Thank you very much for this great sharing, it saves me, a self-learner, lots of time.

  • @typwriter1991
    @typwriter1991 Год назад +6

    This is an amazing video. Very clear and especially with the history that explaining why we need it, helps me better understand all the confusion I had to the WSGI, NGINX, Apache, and Django. Thanks for creating such a perfect video!

  • @alizafari8729
    @alizafari8729 4 года назад +23

    Finally, I realized how Gunicorn is related to WSGI! Thanks a lot for this great tutorial.

  • @ali-kadar
    @ali-kadar 2 года назад +9

    Thank you. That was a simple and easy to understand explanation. I particularly appreciate the first few minutes that start with explaining the history of web servers and web development. We 21st century engineers get most things for granted!

  • @standardio8270
    @standardio8270 2 года назад +2

    Great video!. For me is very important to learn the historical part always help me to remenber and all now many time has sense.

  • @hamedmatari2577
    @hamedmatari2577 10 месяцев назад +1

    this video is not just the best one explaining WSGI and gunicorn, it is the only one that can explain actually. I appreciate a lot

  • @davidinmichael
    @davidinmichael 4 месяца назад

    After 4 years, this lesson is worth more than the latest. Thank you very much 🎉

  • @kenkioqqo
    @kenkioqqo Год назад +2

    Beautiful explanation. Top notch illustration.

  • @8305251920
    @8305251920 3 года назад +1

    Thanks for clearing my thought on WSGI

  • @circuitsofaim
    @circuitsofaim 7 месяцев назад

    Incredible, finally understood the whole interactions of these 3. Thanks

  • @justchary
    @justchary 2 года назад +1

    Thank you, this was well explained

  • @syntaxerror1044
    @syntaxerror1044 4 года назад +6

    Hey man. You make short, compact and simple videos. Appreciated!

  • @junumoon7022
    @junumoon7022 3 года назад +1

    Thank you very much from Korea. It is the video that delivers core concepts of web engines in simple and explicit way. Good work!

  • @ranelpadon8834
    @ranelpadon8834 3 года назад +1

    Excellent style of presentation. Love the historical contexts/rationales. Thanks!

  • @Laptevwalrus
    @Laptevwalrus 10 месяцев назад

    High quality content. You have a talent crunching complex things into simpler ones

  • @АлексейОсипенко-ж3ю

    It's simple to notice how much work you have done, to have all theese knowledge, and, what's more appreciated, that you decided to share it. Thanks. Good luck 🍀

  • @yassersaied7279
    @yassersaied7279 2 года назад

    Wow .. finally I understood the low level details behind communication between front-end and back-end

  • @poneis88
    @poneis88 3 года назад +1

    Great explanation about WSGI and Gunicorn. I was confused when reading about them when deploying a Django project and it is much clearer now. Thank you!

  • @PCspray
    @PCspray 3 года назад

    This helped me a lot to understand WHY I need to use gunicorn instead of using the included dev server from flask.
    Thank you !

    • @PCspray
      @PCspray 3 года назад

      BTW you should teach in university

  • @ramirez368
    @ramirez368 3 года назад

    Best video that I found that explain how CGI works.

  • @davehouser1
    @davehouser1 3 года назад +2

    Thank you for this video. Your presentation skills, content, and teaching is simple, easy to follow, and straight forward. I have cleared up some nebulas web concepts for me in a short amount of time. Nice work!

  • @pjakobsen
    @pjakobsen 3 месяца назад

    Super well organized explanation, so useful. Thank you.

  • @dmitrimedvedev4653
    @dmitrimedvedev4653 3 года назад

    Thanks for great explanation! Now it makes much more sense why I have to use gunicorn. History part is also awesome telling not only how, but why too.

  • @pinch-of-salt
    @pinch-of-salt 4 года назад +1

    More such complex yet simple topics!!! I got to know so much about CGI from this video!!

  • @jackycwwang
    @jackycwwang 2 года назад

    Straight to the point and hard-to-earn understandings from history point of view to way this is done this way. Thank you for sharing valuable information!!!

  • @martinnieva8484
    @martinnieva8484 3 года назад

    This is terrifyngly useful! Thank you very much for uploading :)

  • @fyimbtmn
    @fyimbtmn 4 года назад +1

    Brilliant video. The depth and explanation was perfect.

  • @hassanumari3938
    @hassanumari3938 3 года назад

    oh finally I found something that explains the full picture without any gaps

  • @_theashishbhatt
    @_theashishbhatt 8 месяцев назад

    Thank you so much for explaining the problem the problem CGI, WSGI solve.

  • @abhijithalder4996
    @abhijithalder4996 4 года назад +3

    Awesome one😋😋 made my day, I was so confused with this technology stack😋😋

  • @Surajjaxa7474
    @Surajjaxa7474 3 года назад

    Very great lesson. I really appreciate author's hard works.

  • @idjung4
    @idjung4 3 года назад

    This is a great video! The history/background really helped with understanding WSGI and its benefits.

  • @Oranges4DaWin
    @Oranges4DaWin 4 года назад

    Thank you so much! I love your teaching style, keep up the great work!

  • @idobleicher
    @idobleicher 3 года назад

    Wow! I learned it perfectly! that's really really good!

  • @Jon-vv6nf
    @Jon-vv6nf 2 года назад

    Awesome explanation! hope to see next new vedio

  • @jplobianco
    @jplobianco 3 года назад

    Excelent explanation. Thank you for this great video.

  • @anti7257
    @anti7257 3 года назад

    Finally good explanation of this theme

  • @tarikulislambhuiyan8938
    @tarikulislambhuiyan8938 4 года назад +1

    This video was very helpful !!! you're doing a great job Thank you , i'll recommend this channel to my friends.

  • @takshpatel8109
    @takshpatel8109 3 года назад

    thanks for clarifying those things and flow

  • @juanguirao
    @juanguirao 2 года назад

    This is an excellent video. Great explanation.

  • @vlad_covers
    @vlad_covers 2 года назад

    Thank you so much for the explanation 🙏

  • @vnie1988
    @vnie1988 2 года назад

    Very nice explanation, thank you!

  • @jatinsinghal9486
    @jatinsinghal9486 2 года назад

    Brilliant Explanation. Thanks a lot

  • @skohari
    @skohari Год назад

    Brilliant!!! Thank you so much!

  • @dominikmaj7088
    @dominikmaj7088 3 года назад

    Great explanation, thank you!

  • @LongNguyen-xz7es
    @LongNguyen-xz7es 3 года назад

    Best explanation so far

  • @dopestdopex
    @dopestdopex 2 года назад

    Great explaination with a lot of context, thanks a lot for that!
    I was reading 2 articles on WSGI before (first 2 hits on google) and none could really get to the bottom of it.

  • @eduardogil1775
    @eduardogil1775 3 года назад

    Excellent explanation, thanks for sharing. 👍🏼

  • @eugaleksandr
    @eugaleksandr 3 года назад +1

    Thanks! Useful video

  • @craigleppan7164
    @craigleppan7164 3 года назад

    Thanks - very helpful and informative. Bless you brother.

  • @bashirabdelwahed40
    @bashirabdelwahed40 3 года назад +1

    Hello, Thank you for the lesson! Exxtremly clear and concise information are presented in this video.
    I didn't understand something: if the process is pre-forked, then how can we pass the requests data through environment variables when the request arrives ???

  • @eduardmart1237
    @eduardmart1237 4 года назад

    Really concise and easy to grasp tutorial!!

  • @in7hesky
    @in7hesky 5 месяцев назад

    This is a great explanation indeed

  • @mikolajbuchwald
    @mikolajbuchwald 3 года назад

    Hi, thank you for this tutorial. How does it work for ASGI (e.g., daphne)? Is it the same mechanism, or is there something specific, e.g., about the relation between the proxy server and the ASGI application/ "kind of a web server" (and the workers), due to the asynchronicity of the request processing? 🤔

  • @araceliromero960
    @araceliromero960 3 года назад

    So by the end of this vídeo, were you running an online website ? Could anyone with an internet connection have accesed it? Or was it local? That wasnt so clear to me. I'm very new to apache, thamk you.

  • @FrancoisSchnell
    @FrancoisSchnell 4 года назад

    Thanks for the great explanations, keep it up!

  • @abdelrhmanahmed1378
    @abdelrhmanahmed1378 3 года назад

    derdy(env,foo) --> in django env is request ,so what is foo ?

  • @ranuvijay1
    @ranuvijay1 6 месяцев назад

    Amazing video and knowledge 😊

  • @kg13
    @kg13 3 года назад

    This was very helpful, thank you very much!

  • @choiggoggi
    @choiggoggi 4 года назад

    Brilliantly explained, Thanks!

  • @Mnassar25
    @Mnassar25 10 месяцев назад

    That was a wonderful lesson

  • @debojyotipramanick2124
    @debojyotipramanick2124 3 года назад

    Amazingly explained. Thank you :-)

  • @danalex2991
    @danalex2991 2 года назад

    Super lesson!

  • @raysilitonga8548
    @raysilitonga8548 3 года назад

    Thank you for this great tutorial, much appreciated. However, I need extra guidance relative to my situation.
    I have built my Python Script on VSCode using Flask Framework. My target is to deploy that Python Script to Apache server without Flask so I can implement thread safe/multi thread/multi process using WSGI as I expect the application will have massive number of users.
    What is the way forward for me?
    Again, thank you in advance for any suggestion that you may provide.

  • @prathameshwaghmare5846
    @prathameshwaghmare5846 4 года назад

    Thanks a lot..very clean explanation 💯💯
    You made my day👍

  • @sam_sleem
    @sam_sleem 2 года назад

    Great video.
    Thank you.

  • @ujwalc9226
    @ujwalc9226 3 года назад

    Awesome tutorial ,thank you ♥️♥️

  • @Mmustafa-v4j
    @Mmustafa-v4j 3 года назад

    Excellent

  • @ali-safapour
    @ali-safapour 2 года назад

    Great explanation

  • @aditmodi
    @aditmodi 3 года назад

    Hi,
    great video.
    this is completely irrelevant to current topic but i have a problem.
    I have a dockerfile which is using gunicorn to run django application.
    The problem is while creating a dockerfile gunicorn uses certain ip and port,
    what should I specify for those values.
    I tried to do something like this:
    CMD ["gunicorn" ,"-b" ,"0.0.0.0:8000" ,"my_project.wsgi"]
    it does not work.
    CMD ["gunicorn" ,"-b" ,"0.0.0.0:8000" ,"my_project.wsgi"]
    but this works.
    why does this happen, how to solve this issue.
    my goal is to deploy my django application using docker ( on aws ).
    create a ci/cd solution for my django app. ( on aws )
    It would be great if you could help out.

  • @szymonpiechutowski2340
    @szymonpiechutowski2340 8 месяцев назад

    Wonderful video!

  • @LucasNaruto8107
    @LucasNaruto8107 3 года назад

    That was actually pretty good

  • @peterlaidlaw8655
    @peterlaidlaw8655 Год назад

    Thanks; I got it now.

  • @starplatinum2008
    @starplatinum2008 3 года назад

    great lesson

  • @asigari0711
    @asigari0711 Год назад

    great video, thank you.

  • @thegreatsilence1081
    @thegreatsilence1081 4 года назад

    So important topic I learned today

  • @muhammedabuodeh9310
    @muhammedabuodeh9310 2 года назад

    great video! subscribed!

  • @lefteriskapsimalis9613
    @lefteriskapsimalis9613 4 года назад

    Well explained. Thank you a lot

  • @davidbohadana8274
    @davidbohadana8274 3 года назад

    Great lesson, thanks mate!

  • @aashayamballi
    @aashayamballi 4 года назад +1

    Thank you 😊

  • @LoanNguyen-zh1uy
    @LoanNguyen-zh1uy 3 года назад

    Character In the video It's great, I like it a lot $$

  • @AhmedHassandahabey
    @AhmedHassandahabey 4 года назад

    All your tutorials are awesome man.
    Just try to zoom your workspace a little or make the screen resolution less than 1024 so it will look clearer with small screen devices

  • @muralidhar40
    @muralidhar40 2 года назад

    Very good.

  • @StrangeIndeed
    @StrangeIndeed 4 года назад +1

    great explanation. Thanks c:

  • @monkgreensky2429
    @monkgreensky2429 4 года назад

    super informative video thanks man.

  • @boriscreativespace
    @boriscreativespace 4 года назад +1

    spasibo bratan

  • @shubhamsharma-fs7dc
    @shubhamsharma-fs7dc 3 года назад

    Thank you

  • @alejandroalemanhernandez4071
    @alejandroalemanhernandez4071 4 года назад

    Great video, mate!

  • @evgenyocean426
    @evgenyocean426 4 года назад

    I just wanted to clarify that Gunicorn is kinda web server, which kinda works as a web server, but it's not exactly a web server :D
    Just kidding, great explanation man!

  • @naheliegend5222
    @naheliegend5222 4 года назад

    Do I need Gunicorn/uWSGI , if Apache is running on my Server?

    • @naheliegend5222
      @naheliegend5222 2 года назад

      answer my own question: no, use mod_wsgi

  • @asimabusallam3147
    @asimabusallam3147 3 года назад

    very helpful

  • @rasimatics
    @rasimatics 4 года назад

    Awesome 👍👍👍

  • @chenchaowang8863
    @chenchaowang8863 4 года назад

    thanks!

  • @ditithaqi
    @ditithaqi 4 года назад

    Thank you life saver

  • @sammychafiqui1817
    @sammychafiqui1817 4 года назад

    Love this thanks a lot

  • @mehdikamani8004
    @mehdikamani8004 4 года назад

    Realy enjoyed the video

  • @SE420
    @SE420 4 года назад

    You are the best

  • @chetansoni2795
    @chetansoni2795 3 года назад

    It was a great tutorial