[1.4.X] Fixed #18577 - Clarified middleware initialization.
[1.4.X] Fixed #18577 - Clarified middleware initialization.

Thanks Lukasz Balcerzak for the patch.

Backport of 590de18add from master

riklaunim/django-custom-multisite,riklaunim/django-custom-multisite,riklaunim/django-custom-multisite