Ticket #1549: diffsettings2.patch
File diffsettings2.patch, 837 bytes (added by , 19 years ago) |
---|
-
django/core/management.py
525 525 followed by "###". 526 526 """ 527 527 # Inspired by Postfix's "postconf -n". 528 from django.conf import settings 529 from django.conf import global_settings 528 from django.conf import settings, global_settings 530 529 531 530 user_settings = _module_to_dict(settings) 532 531 default_settings = _module_to_dict(global_settings) 533 532 534 533 output = [] 535 for key in sorted(user_settings): 534 keys = user_settings.keys() 535 keys.sort() 536 for key in keys: 536 537 if key not in default_settings: 537 538 output.append("%s = %s ###" % (key, user_settings[key])) 538 539 elif user_settings[key] != default_settings[key]: