1
0
mirror of https://github.com/django/django.git synced 2025-07-05 18:29:11 +00:00

[boulder-oracle-sprint] removed some debugging statements from django.core.management

git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@3968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-11-04 18:47:59 +00:00
parent f70998c1b8
commit 3504a58b91

View File

@ -520,12 +520,7 @@ def syncdb(verbosity=1, interactive=True):
if verbosity >= 1:
print "Creating table %s" % model._meta.db_table
for statement in sql:
# go on if one table could not be created
try:
cursor.execute(statement)
except Exception, e:
print statement
print e
table_list.append(model._meta.db_table)
for model in model_list:
@ -535,11 +530,7 @@ def syncdb(verbosity=1, interactive=True):
if verbosity >= 2:
print "Creating many-to-many tables for %s.%s model" % (app_name, model._meta.object_name)
for statement in sql:
try:
cursor.execute(statement)
except Exception, e:
print statement
print e
transaction.commit_unless_managed()