diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2011-11-27 20:13:37 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2011-11-27 20:13:37 +0000 |
| commit | 7872fc0dab2ad9971fb044b73ff33980aa4e7381 (patch) | |
| tree | 12c6f0568374f14238fbead82815443d03157fd6 /django/conf | |
| parent | 33a52cde08ef7ab8ba8990d40646d0dc2a8482df (diff) | |
Fixed #16247 -- Removed wildcard expansion of application names in INSTALLED_APPS.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17158 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/conf')
| -rw-r--r-- | django/conf/__init__.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/django/conf/__init__.py b/django/conf/__init__.py index 3b829ce75b..8fff20248f 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -102,23 +102,6 @@ class Settings(BaseSettings): setting_value = (setting_value,) # In case the user forgot the comma. setattr(self, setting, setting_value) - # Expand entries in INSTALLED_APPS like "django.contrib.*" to a list - # of all those apps. - new_installed_apps = [] - for app in self.INSTALLED_APPS: - if app.endswith('.*'): - app_mod = importlib.import_module(app[:-2]) - appdir = os.path.dirname(app_mod.__file__) - app_subdirs = os.listdir(appdir) - app_subdirs.sort() - name_pattern = re.compile(r'[a-zA-Z]\w*') - for d in app_subdirs: - if name_pattern.match(d) and os.path.isdir(os.path.join(appdir, d)): - new_installed_apps.append('%s.%s' % (app[:-2], d)) - else: - new_installed_apps.append(app) - self.INSTALLED_APPS = new_installed_apps - if hasattr(time, 'tzset') and self.TIME_ZONE: # When we can, attempt to validate the timezone. If we can't find # this file, no check happens and it's harmless. |
