mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Make the example usage of import_by_path less confusing.
Using import_by_path to import import_by_path is a really odd use case and makes the code example difficult to read.
This commit is contained in:
parent
63f6ee817e
commit
cde820bd31
@ -659,11 +659,11 @@ Functions for working with Python modules.
|
||||
wrong. For example::
|
||||
|
||||
from django.utils.module_loading import import_by_path
|
||||
import_by_path = import_by_path('django.utils.module_loading.import_by_path')
|
||||
ImproperlyConfigured = import_by_path('django.core.exceptions.ImproperlyConfigured')
|
||||
|
||||
is equivalent to::
|
||||
|
||||
from django.utils.module_loading import import_by_path
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
|
||||
``django.utils.safestring``
|
||||
===========================
|
||||
|
Loading…
Reference in New Issue
Block a user