[1.7.x] Avoided using deprecated version of importlib; refs #23418.
[1.7.x] Avoided using deprecated version of importlib; refs #23418.

Backport of fbeb7979ee from master

oscaro/django,oscaro/django,jyotsna1820/django,jyotsna1820/django,jyotsna1820/django,jyotsna1820/django,oscaro/django,oscaro/django