From d029fafea1a1f2f257397fbcd0fa3b531e09854f Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 17 Jan 2015 21:04:07 -0500 Subject: Removed utils.module_loading.import_by_path() per deprecation timeline; refs #21674. --- docs/ref/utils.txt | 9 --------- docs/releases/1.7.txt | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) (limited to 'docs') diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index f3e1520502..c82e55005e 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -755,15 +755,6 @@ Functions for working with Python modules. from django.core.exceptions import ValidationError -.. function:: import_by_path(dotted_path, error_prefix='') - - .. deprecated:: 1.7 - Use :meth:`~django.utils.module_loading.import_string` instead. - - Imports a dotted module path and returns the attribute/class designated by - the last name in the path. Raises :exc:`~django.core.exceptions.ImproperlyConfigured` - if something goes wrong. - ``django.utils.safestring`` =========================== diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index b8fe9b257f..93572ddfd3 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -1481,8 +1481,8 @@ versions prior to 2.7. They have been deprecated. ``django.utils.module_loading.import_by_path`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The current :meth:`~django.utils.module_loading.import_by_path` function -catches ``AttributeError``, ``ImportError`` and ``ValueError`` exceptions, +The current ``django.utils.module_loading.import_by_path`` function +catches ``AttributeError``, ``ImportError``, and ``ValueError`` exceptions, and re-raises :exc:`~django.core.exceptions.ImproperlyConfigured`. Such exception masking makes it needlessly hard to diagnose circular import problems, because it makes it look like the problem comes from inside Django. -- cgit v1.3