Kaydet (Commit) cde820bd authored tarafından Marc Tamlyn's avatar Marc Tamlyn

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.
üst 63f6ee81
...@@ -659,11 +659,11 @@ Functions for working with Python modules. ...@@ -659,11 +659,11 @@ Functions for working with Python modules.
wrong. For example:: wrong. For example::
from django.utils.module_loading import import_by_path 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:: is equivalent to::
from django.utils.module_loading import import_by_path from django.core.exceptions import ImproperlyConfigured
``django.utils.safestring`` ``django.utils.safestring``
=========================== ===========================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment