Ticket #8703: envset.diff

File envset.diff, 615 bytes (added by Karen Tracey, 16 years ago)
  • django/core/management/__init__.py

     
    314314    sys.path.pop()
    315315
    316316    # Set DJANGO_SETTINGS_MODULE appropriately.
    317     os.environ['DJANGO_SETTINGS_MODULE'] = '%s.%s' % (project_name, settings_name)
     317    if not os.environ.has_key('DJANGO_SETTINGS_MODULE'):
     318        os.environ['DJANGO_SETTINGS_MODULE'] = '%s.%s' % (project_name, settings_name)
    318319    return project_directory
    319320
    320321def execute_from_command_line(argv=None):
Back to Top