Django

Code

Ticket #8242 (closed: fixed)

Opened 4 months ago

Last modified 3 months ago

INSTALLED_APPS with "foo.*" not populated consistently

Reported by: jdunck Assigned to: jacob
Milestone: 1.0 Component: Core framework
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

INSTALLED_APPS-order.diff (0.8 kB) - added by jdunck on 08/11/08 17:01:48.

Change History

08/11/08 17:01:48 changed by jdunck

  • attachment INSTALLED_APPS-order.diff added.

08/12/08 13:27:58 changed by jacob

  • owner changed from nobody to jacob.
  • status changed from new to assigned.
  • stage changed from Unreviewed to Accepted.
  • milestone changed from post-1.0 to 1.0.

08/25/08 07:58:19 changed by jacob

  • status changed from assigned to closed.
  • resolution set to fixed.

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


Add/Change #8242 (INSTALLED_APPS with "foo.*" not populated consistently)




Change Properties
Action