Ticket #9323: 9323_r9208.diff
File 9323_r9208.diff, 2.7 KB (added by , 16 years ago) |
---|
-
django/conf/__init__.py
113 113 app_subdirs = os.listdir(appdir) 114 114 app_subdirs.sort() 115 115 for d in app_subdirs: 116 if d.isal pha() and os.path.isdir(os.path.join(appdir, d)):116 if d.isalnum() and d[0].isalpha() and os.path.isdir(os.path.join(appdir, d)): 117 117 new_installed_apps.append('%s.%s' % (app[:-2], d)) 118 118 else: 119 119 new_installed_apps.append(app) -
tests/regressiontests/app_loading/test_settings.py
1 INSTALLED_APPS = ( 2 'parent.*', 3 ) -
tests/regressiontests/app_loading/parent/app/__init__.py
1 # not empty to make SVN happy -
tests/regressiontests/app_loading/parent/app1/__init__.py
1 # not empty to make SVN happy -
tests/regressiontests/app_loading/parent/__init__.py
1 # not empty to make SVN happy -
tests/regressiontests/app_loading/tests.py
1 """ 2 Test the globbing of INSTALLED_APPS. 3 4 >>> import os, sys 5 >>> old_sys_path = sys.path 6 >>> sys.path.append(os.path.dirname(os.path.abspath(__file__))) 7 8 >>> from django.conf import Settings 9 10 >>> s = Settings('test_settings') 11 12 >>> s.INSTALLED_APPS 13 ['parent.app', 'parent.app1'] 14 15 >>> sys.path = old_sys_path 16 17 """ 18