Disable emailing 503 errors to admins while maintenance mode is enabled
See original GitHub issuePython version 3.8
Django version 3.1.4
Package version 0.15.1
I think it would be nice to have a setting like this:
# Don't send 503 error emails to admins while maintenance mode is active
MAINTENANCE_MODE_DISABLE_503_EMAILS = True
By default, Django sends emails to site admins for HTTP errors >= 500. It would be nice if this could be turned off while maintenance mode is on, since these errors would be expected at that time.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (6 by maintainers)
Top Results From Across the Web
How to Fix the HTTP Error 503 Service Unavailable - Kinsta
1. Temporarily Deactivate Your WordPress Plugins. One of the most common causes of the 503 error in WordPress is plugin compatibility issues. ...
Read more >WP Maintence mode with Hide My WP | WordPress.org
It seems that WP Maintenance mode is not working with Hide My WP. The maintenance page shows error 503 and admin also can't...
Read more >How to fix a 503 error on WordPress? - Maintenance WP
First, there is this blank page. A blank page with some not very understandable indications. The number 503 appears here, and the following ......
Read more >Solved: Magento 2 Service Temporarily Unavailable (Error 503)
It may happen because the server is under the maintenance mode or is simply ... the error log if you see a message...
Read more >How To Fix GoDaddy's 503 Service Unavailable Error [2022]
1. Deactivate all plugins 1 by 1 then reactivate them to see which one's slowing down your website and causing 503 service unavailable...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thx!
settings.MAINTENANCE_MODE is static and cannot be changed when run “maintenance_mode <on|off>”. So if I run the command or by other methods to change the maintenance mode, the error email still will be sent to admin. Will this filter be improved in the future? something like the following codes?
class RequireNotMaintenanceMode503(logging.Filter): “”" Filters out 503 errors if maintenance mode is activated. “”"