So I am running uWSGI with the --py-autoreload 1
parameter. This way when I edit my python files I wont have to restart uwsgi to see the changes take effect. So far it has worked just fine. I edit my python code, head over to my browser and refresh to see the output. Note that this is a Flask web application. BUT, when I have a error in the python code, I reload the browser and see an Internal Server Error, naturally. The problem is when I go back and correct the python error and refresh the browser, I still see the Internal Server Error. It's only when I manually restart uWSGI that everything goes back to normal.
So, how can I have it configured so when I do edit my python code to correct a error to not completely break uWSGI and just reload and show me the changes, like it does when I make changes without errors.
Also, is there a way to display a tracestack and better debugging info in the browser? I'd prefer it like that as I am developing web apps and refresh the app in the browser frequently when making python or front-end changes. Any advice would be very much appreciated. I am new to Python web development but have a strong drive to learn and would like to do so with today's best practices.
Aucun commentaire:
Enregistrer un commentaire