Changes between Version 1 and Version 2 of Ticket #36864, comment 12
- Timestamp:
- May 29, 2026, 10:40:31 AM (5 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36864, comment 12
v1 v2 18 18 19 19 If 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 21 EDIT: [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`