Ticket #8242: INSTALLED_APPS-order.diff

File INSTALLED_APPS-order.diff, 783 bytes (added by Jeremy Dunck, 16 years ago)
Line 
1diff --git a/vendor/django_dist/django/conf/__init__.py b/vendor/django_dist/django/conf/__init__.py
2index 61d9ff7..4d084b9 100644
3--- a/vendor/django_dist/django/conf/__init__.py
4+++ b/vendor/django_dist/django/conf/__init__.py
5@@ -103,7 +103,9 @@ class Settings(object):
6 for app in self.INSTALLED_APPS:
7 if app.endswith('.*'):
8 appdir = os.path.dirname(__import__(app[:-2], {}, {}, ['']).__file__)
9- for d in os.listdir(appdir):
10+ app_subdirs = os.listdir(appdir)
11+ app_subdirs.sort()
12+ for d in app_subdirs:
13 if d.isalpha() and os.path.isdir(os.path.join(appdir, d)):
14 new_installed_apps.append('%s.%s' % (app[:-2], d))
15 else:
Back to Top