summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-01-17 21:04:07 -0500
committerTim Graham <timograham@gmail.com>2015-01-18 12:51:15 -0500
commitd029fafea1a1f2f257397fbcd0fa3b531e09854f (patch)
tree1907d7b92dc7f17f07e8624469439bbab575eb8a /docs
parentc3336e7e4f146fc62272d462288a00f8d78c1f83 (diff)
Removed utils.module_loading.import_by_path() per deprecation timeline; refs #21674.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/utils.txt9
-rw-r--r--docs/releases/1.7.txt4
2 files changed, 2 insertions, 11 deletions
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.