mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #21674 -- Deprecated the import_by_path() function in favor of import_string().
Thanks Aymeric Augustin for the suggestion and review.
This commit is contained in:
committed by
Tim Graham
parent
fcc21837dc
commit
5d263dee30
@@ -1042,6 +1042,17 @@ Features deprecated in 1.7
|
||||
respectively :mod:`logging.config` and :mod:`importlib` provided for Python
|
||||
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,
|
||||
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.
|
||||
It has been deprecated in favor of
|
||||
:meth:`~django.utils.module_loading.import_string`.
|
||||
|
||||
``django.utils.tzinfo``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user