Changes between Version 1 and Version 2 of Ticket #36864, comment 12


Ignore:
Timestamp:
May 29, 2026, 10:40:31 AM (5 days ago)
Author:
Tim McCurrach

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36864, comment 12

    v1 v2  
    1818
    1919If my reading of the linked werkzueg solution above, and of the currently open PR are correct; they both first attempt to import a module, and only when that fails do they then look for an attribute to import instead. This is different to Natalia's suggestion of maintaining existing behaviour and dropping back to module import only when that fails - which would be less breaking.
     20
     21EDIT: [https://docs.djangoproject.com/en/6.0/ref/utils/#django.utils.module_loading.import_string The docs] also currently document that `c = import_string("b.c")` should be equivalent to `from b import c`
Back to Top