Any advise regarding when is it worth to reraise exceptions to add additional context about the exception? Should that be avoided as it convolutes the code? What if the error occurs fairly frequently and it is rather hard to understand without spending some time analysing the code around it - is it worth reraising a clearer exception? Should I reraise the same exception type or create a new type?
@miguelgrinberg5 күн бұрын
This is a matter of personal opinion. I do not consider catching and re-raising an exception of any use myself, since the context of all the places through which the exception traveled are in the stack trace anyway.
@justinaskazanavicius92975 күн бұрын
@miguelgrinberg Thanks a lot! That has been my thinking as well - currently refactoring a codebase that has lots of re-raises so just wanted to be sure removing them won't be causing more harm than good.
@justinaskazanavicius92976 күн бұрын
This is exactly the information I was looking for. Very informative!
@Monsieurfivio11 күн бұрын
man i love your stuff! following your mega flask tutorial and i didnt know you had a youtube. now i know
@kavithaganesan293814 күн бұрын
Thank you for making this....
@csshravankumar23 күн бұрын
Thank you Miguel. This is amazing!
@ajrizaldo4204Ай бұрын
flawlessly easy, and minimal, I liked it!. I don't know if this still works now but we'll see.
@ajrizaldo4204Ай бұрын
Update: It works! Also watching the part 2 made me learn more about setting up a vps and nginx. Thank you for the wonderful. content
@blu3h4tАй бұрын
Miguel what do you think about flutter/dart?
@jafeta.75532 ай бұрын
Orgullo Exactas
@aryanpagaria2 ай бұрын
Thanks and very informative videos 😊
@achinthawijekoon48762 ай бұрын
gracias
@ruuia2 ай бұрын
thank you for taking the time and sharing your teachings for free.
@Sammy1973 ай бұрын
keep in mind the sleep is crucial for this to work
@timur.shhhhh3 ай бұрын
how to run socketio from file without gunicorn?
@spab873 ай бұрын
Dear Miguel, you have saved a few liters of my blood, sweat and tears. You are the real MVP!
@edwardwilliamsams65893 ай бұрын
Fantastic
@user-mr4bx7dx3y3 ай бұрын
I'm sorry, there's something I don't understand. I have created my routes for the backend, which according to the video have to be api/something. That's clear. Then for the frontend I've been using local host. This means I need to change all my routes to match the backend ones removing that localhost I was using during the development? I don't know if you will see this after so long so if someone could help, I'd really appreciate it.
@miguelgrinberg3 ай бұрын
@@user-mr4bx7dx3y you didn't have to specify a hostname in your client. If you use /api/xxx as URL the browser will use the same domain you are on. That should make the same code work for dev and prod.
@dave88264 ай бұрын
Thanks! but I can not add html elements to cells, can you help me?
@shubhamverma3295 ай бұрын
thank you
@AdminPatecan5 ай бұрын
Even if I'm in debt, I still just go to the bank to take a loan and donate to you
@zhihaozhang19635 ай бұрын
Thanks
@TalhaMurtaza5 ай бұрын
Great work!
@dipeshsamrawat79575 ай бұрын
Thank you, man.
@tankabhattarai90706 ай бұрын
Start from 18:40
@SrinivasaRajuVuppalapati6 ай бұрын
Excellent Tutorial !! Great Job
@MrUN00brn7 ай бұрын
Great work, Miguel <3 Hug from Brazil!
@abiikr47737 ай бұрын
the problem is my terminal doesnt show any errors
@FrostDream7 ай бұрын
But how I tried but I couldn't find a way to do wss?
@FrostDream7 ай бұрын
I have two questions 1. did you created this lib? 2. can this flask-sock handle wss?
@miguelgrinberg7 ай бұрын
Yes to both!
@FrostDream7 ай бұрын
Thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu ❤❤❤❤❤❤❤❤
@TanyaRaghav-pj8em7 ай бұрын
sir pls provide the code
@ТаняМатвеева-н9ъ7 ай бұрын
the best explanation i`ve managed to find!
@yhaouatis7 ай бұрын
Is that possible to hook VEVOR mini claw machine to raspberry pi to control it remotely?
@KashishVarshney-cr7iz8 ай бұрын
please someone tell me that this asgi thing works now in 2024 or some new techniques are there
@miguelgrinberg7 ай бұрын
Yes, ASGI is definitely still a thing in 2024!
@ucnguyen-jq4mh8 ай бұрын
Very helpful, thank you so much
@M10PrasanthkmCR78 ай бұрын
thanks man
@iskandarjunaedi32189 ай бұрын
Is there anyway make an input use a tabular such as that form to input the data as one unit (like a journal has many line)
@happymalyo_9 ай бұрын
Nice Tutorial Bro. Can you make a tutorial using Next Js as client side ? Thank you
@jeremyvandress335710 ай бұрын
Hey partner! Question! Did you slow down the video when totality happened?! Or this a consistent time lapse?! Thank you!
@erictian971710 ай бұрын
您好,可以出个中文版的教程吗?
@sharebrained10 ай бұрын
Congratulations on this clip making it into the most recent episode of PBS Space Time. And hello from a former coworker. ;-)
@miguelgrinberg10 ай бұрын
Hey, Jared! Hello to you too! Getting some renewed attention on this little video in recent days!
@markmozer10 ай бұрын
Such a clear explanation of the App Factory concept and how to refactor a project in an easy and straightforward way. Thank you very much Miguel!
@mdashrafbhuiyasaimon927810 ай бұрын
I have just one question: If I want to configure the client and move to reverse proxy like localhost:80, how do I automatically make the React app run?
@RicoDodzLugod10 ай бұрын
Nice tutorial Sir. I have question. Is it possible to stop only the specific thread and not to stop the main thread? Eg. i have main thread running, and have 4 threads running on that function. I want to stop the 3rd thread alone without affecting the rest of the threads. Is possible?
@firetimeinit11 ай бұрын
this is such a wealth of knowledge
@0xmkay11 ай бұрын
Good explanation what about same scenario but more than one threads. Everyone of em is going to print iteration complete statement before exiting?
@mannanjaffery11 ай бұрын
Where can I find the course the website is not reaponding
@Sith90lord11 ай бұрын
What if i have no access to the code executed on the thread? In my case, I am given a piece of code to run on my thread, there is no while loop where i can check periodically for stop flags, it's just one function reference call. How would i tell the thread to stop executing then? Basically you can't touch your "bg_thread()" method. Are there no outside controls available to stop the thread execution?
@oscarin55irene11 ай бұрын
Still using this video after 2 years as main reference for dockerizing my web projects :) Thanks, Miguel!
@Shintarobrl Жыл бұрын
gunicorn is not available for windows
@nickett Жыл бұрын
Is there the way to make it aaync?
@miguelgrinberg Жыл бұрын
No. This is for flask, which does not have good async support.