#37166: System check for developer/test MAILERS in production
------------------------------+---------------------------------------
Reporter: Mike Edmunds | Type: New feature
Status: new | Component: Core (Mail)
Version: 6.1 | Severity: Normal
Keywords: checks | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Add a deployment-only system check that warns if the `"default"` `MAILERS`
configuration uses the console, dummy, file, or locmem EmailBackend. (Any
of Django's built-in backends that are documented as "not intended for use
in production".)
The check should only consider the `"default"` configuration. (Having,
e.g., a `"test"` or `"archive"` configuration that uses the file backend
should not cause a warning.)
This is recommended early follow-on work from
[
https://github.com/django/deps/blob/main/accepted/0018-mailers.md#future-
system-checks DEP 0018]. See also #37161.
--
Ticket URL: <
https://code.djangoproject.com/ticket/37166>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.