I'm new to Django. Since in a development environment it happens that an error occurs after a request (often because it is badly handled) and Django crashes, I thought about creating a script (in production) to detect if Django is running and if not run it again (something like this). And of course after adding block try except everywhere.
But since Django is well done it wouldn't surprise me if this concern is already taken in consideration, hence my question.
Thank you.
In a production environment, you have to use debug=False
mode in the settings.py
.
A few moments since you've set up debug false mode:
500 Internal Server Error
for a user docsAdditional:
More info about Django deployment is here