Fixed #21674 -- Deprecated the import_by_path() function in favor of import_string()

Added minor edits to https://github.com/django/django/pull/2187