Discussion of this function is outside of the scope of this ticket, this is merely a backport of what's already in master and 1.6: https://github.com/django/django/blob/master/django/utils/module_loading.py#L12