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:
parent
2554ea352e
commit
2cf419d9ed
|
@ -5,7 +5,6 @@ import itertools
|
||||||
from optparse import make_option, OptionParser
|
from optparse import make_option, OptionParser
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
from traceback import print_exc
|
|
||||||
|
|
||||||
class CommandError(Exception):
|
class CommandError(Exception):
|
||||||
pass
|
pass
|
||||||
|
@ -60,11 +59,7 @@ class BaseCommand(object):
|
||||||
os.environ['DJANGO_SETTINGS_MODULE'] = options.settings
|
os.environ['DJANGO_SETTINGS_MODULE'] = options.settings
|
||||||
if options.pythonpath:
|
if options.pythonpath:
|
||||||
sys.path.insert(0, options.pythonpath)
|
sys.path.insert(0, options.pythonpath)
|
||||||
try:
|
self.execute(*args, **options.__dict__)
|
||||||
self.execute(*args, **options.__dict__)
|
|
||||||
except Exception, e:
|
|
||||||
print_exc()
|
|
||||||
parser.print_usage()
|
|
||||||
|
|
||||||
def execute(self, *args, **options):
|
def execute(self, *args, **options):
|
||||||
# Switch to English, because django-admin.py creates database content
|
# Switch to English, because django-admin.py creates database content
|
||||||
|
|
Loading…
Reference in New Issue