Ticket #8703: envset.diff
File envset.diff, 615 bytes (added by , 16 years ago) |
---|
-
django/core/management/__init__.py
314 314 sys.path.pop() 315 315 316 316 # 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) 318 319 return project_directory 319 320 320 321 def execute_from_command_line(argv=None):