Ticket #19748: 19748.diff

File 19748.diff, 1.1 KB (added by timo, 2 years ago)
  • docs/ref/utils.txt

    diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
    index b103a9a..a7d5b66 100644
    a b escaping HTML. 
    643643    Converts a positive integer to a base 36 string. On Python 2 ``i`` must be
    644644    smaller than :data:`sys.maxint`.
    645645
     646``django.utils.module_loading``
     647===============================
     648
     649.. module:: django.utils.module_loading
     650   :synopsis: Functions for working with Python modules.
     651
     652Functions for working with Python modules.
     653
     654.. function:: import_by_path(dotted_path, error_prefix='')
     655
     656    Imports a dotted module path and returns the attribute/class designated by
     657    the last name in the path. Raises
     658    :exc:`~django.core.exceptions.ImproperlyConfigured` if something goes
     659    wrong. For example::
     660
     661        from django.utils.module_loading import import_by_path
     662        import_by_path = import_by_path('django.utils.module_loading.import_by_path')
     663
     664    is equivalent to::
     665
     666        from django.utils.module_loading import import_by_path
     667
    646668``django.utils.safestring``
    647669===========================
    648670
Back to Top