Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #8242: handle `foo.*` consistantly in INSTALLED_APPS.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 60d5f0db3c304ca8c10deaa24cddee20592b8656 1 parent e206eab
@jacobian jacobian authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/conf/__init__.py
View
4 django/conf/__init__.py
@@ -110,7 +110,9 @@ def __init__(self, settings_module):
for app in self.INSTALLED_APPS:
if app.endswith('.*'):
appdir = os.path.dirname(__import__(app[:-2], {}, {}, ['']).__file__)
- for d in os.listdir(appdir):
+ app_subdirs = os.listdir(appdir)
+ app_subdirs.sort()
+ for d in app_subdirs:
if d.isalpha() and os.path.isdir(os.path.join(appdir, d)):
new_installed_apps.append('%s.%s' % (app[:-2], d))
else:
Please sign in to comment.
Something went wrong with that request. Please try again.