Upgrading Django to 5.1 created a severe issue, breaking mail template-associated features. The issue originated from the third party 'easy_thumbnail'. Please refer to the issue #641 on Django's repo. This is the suggested workaround by @Miketsukami.