Ticket #11667: django_11667_patch.diff

File django_11667_patch.diff, 731 bytes (added by jedie, 15 years ago)

use traceback.format_exc()

  • ./django/django/core/management/base.py

    # Patch for http://code.djangoproject.com/ticket/11667
     
    214214            except ImportError, e:
    215215                # If settings should be available, but aren't,
    216216                # raise the error and quit.
    217                 sys.stderr.write(self.style.ERROR(str('Error: %s\n' % e)))
     217                import traceback
     218                sys.stderr.write(self.style.ERROR(traceback.format_exc()))
    218219                sys.exit(1)
    219220        try:
    220221            if self.requires_model_validation:
Back to Top