Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit cde820bd31e810d61cc2c9b09cc2ec7d5ddbf165 1 parent 63f6ee8
Marc Tamlyn mjtamlyn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/utils.txt
4 docs/ref/utils.txt
View
@@ -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``
===========================
Please sign in to comment.
Something went wrong with that request. Please try again.