INSTALLED_APPS with "foo.*" not populated consistently
|Reported by:||Jeremy Dunck||Owned by:||Jacob|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
On different filesystems, but using the same list of INSTALLED_APPS, the final populated list of INSTALLED_APPS can vary.
os.listdir's return list is arbitrary, so that the apps are loaded differently.
The most obvious display of this issue is where foo.* apps are listed in the admin index. However, applications might also expect to be initialized in a stable order, and Django's globbing currently fails at that.
I think simply sorting the results of listdir would address this.
Obviously, providing consistent tests for this is difficult, but I have observed it in the wild.
Change History (4)
comment:1 Changed 9 years ago by
|milestone:||post-1.0 → 1.0|
|Owner:||changed from nobody to Jacob|
|Status:||new → assigned|
|Triage Stage:||Unreviewed → Accepted|