Fixed #6038 -- Don't hide some types of errors in syncdb. Thanks, Thomas Güttler.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
04a20c0226
commit
fc4129abbb
|
@ -33,8 +33,9 @@ class Command(NoArgsCommand):
|
|||
for app_name in settings.INSTALLED_APPS:
|
||||
try:
|
||||
__import__(app_name + '.management', {}, {}, [''])
|
||||
except ImportError:
|
||||
pass
|
||||
except ImportError, exc:
|
||||
if not exc.args[0].startswith('No module named management'):
|
||||
raise
|
||||
|
||||
cursor = connection.cursor()
|
||||
|
||||
|
|
Loading…
Reference in New Issue