Code

Opened 6 years ago

Closed 6 years ago

Last modified 3 years ago

#8242 closed (fixed)

INSTALLED_APPS with "foo.*" not populated consistently

Reported by: jdunck Owned by: jacob
Component: Core (Other) Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

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.

Attachments (1)

INSTALLED_APPS-order.diff (783 bytes) - added by jdunck 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by jdunck

comment:1 Changed 6 years ago by jacob

  • milestone changed from post-1.0 to 1.0
  • Owner changed from nobody to jacob
  • Status changed from new to assigned
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 6 years ago by jacob

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [8538]) Fixed #8242: handle foo.* consistantly in INSTALLED_APPS.

comment:3 Changed 3 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.