diff --git a/django/core/management/commands/syncdb.py b/django/core/management/commands/syncdb.py index 81938c777c..0f21130f7a 100644 --- a/django/core/management/commands/syncdb.py +++ b/django/core/management/commands/syncdb.py @@ -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()