summaryrefslogtreecommitdiff
path: root/docs/ref/utils.txt
diff options
context:
space:
mode:
authorMarc Tamlyn <marc.tamlyn@gmail.com>2013-05-16 10:06:42 +0200
committerMarc Tamlyn <marc.tamlyn@gmail.com>2013-05-16 10:11:46 +0200
commitcde820bd31e810d61cc2c9b09cc2ec7d5ddbf165 (patch)
tree9800a169e1fed6e20759169c7ccf677b23c16f9a /docs/ref/utils.txt
parent63f6ee817ec281b14e1a5fbcdc356cfcab67280b (diff)
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.
Diffstat (limited to 'docs/ref/utils.txt')
-rw-r--r--docs/ref/utils.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index a7d5b6690e..14ae9aa9b8 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -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``
===========================