Got runserver auto-reloading working again by removing what appeared to be debugging code in django.core.management.base. Refs #5369

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-09-11 04:37:23 +00:00
parent 2554ea352e
commit 2cf419d9ed
1 changed files with 1 additions and 6 deletions

View File

@ -5,7 +5,6 @@ import itertools
from optparse import make_option, OptionParser
import sys
import os
from traceback import print_exc
class CommandError(Exception):
pass
@ -60,11 +59,7 @@ class BaseCommand(object):
os.environ['DJANGO_SETTINGS_MODULE'] = options.settings
if options.pythonpath:
sys.path.insert(0, options.pythonpath)
try:
self.execute(*args, **options.__dict__)
except Exception, e:
print_exc()
parser.print_usage()
self.execute(*args, **options.__dict__)
def execute(self, *args, **options):
# Switch to English, because django-admin.py creates database content