Ticket #1549: diffsettings2.patch

File diffsettings2.patch, 837 bytes (added by pb@…, 19 years ago)

Python 2.3 compatible version

  • django/core/management.py

     
    525525    followed by "###".
    526526    """
    527527    # 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
    530529
    531530    user_settings = _module_to_dict(settings)
    532531    default_settings = _module_to_dict(global_settings)
    533532
    534533    output = []
    535     for key in sorted(user_settings):
     534    keys = user_settings.keys()
     535    keys.sort()
     536    for key in keys:
    536537        if key not in default_settings:
    537538            output.append("%s = %s  ###" % (key, user_settings[key]))
    538539        elif user_settings[key] != default_settings[key]:
Back to Top