mirror of
https://github.com/django/django.git
synced 2025-06-13 07:29:13 +00:00
magic-removal: [2498] forced apps to have a models module. Fixed.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2491 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
043175c3fb
commit
9a25318939
@ -18,7 +18,7 @@ def get_apps():
|
||||
for app_name in settings.INSTALLED_APPS:
|
||||
try:
|
||||
_app_list.append(__import__(app_name, '', '', ['models']).models)
|
||||
except ImportError, e:
|
||||
except (ImportError, AttributeError), e:
|
||||
pass
|
||||
return _app_list
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user