def diffsettings():
 from django.conf import settings, global_settings
 user_settings = _module_to_dict(settings._target)
 default_settings = _module_to_dict(global_settings)
 output = []
 keys = user_settings.keys()
 keys.sort()
 for key in keys:
  if (key not in default_settings):
   output.append(('%s = %s  ###' % (key, user_settings[key])))
  elif (user_settings[key] != default_settings[key]):
   output.append(('%s = %s' % (key, user_settings[key])))
 print '\n'.join(output)

def diffsettings ( ) : from django . conf import settings , global_settings user_settings = _module_to_dict ( settings . _target ) default_settings = _module_to_dict ( global_settings ) output = [ ] keys = user_settings . keys ( ) keys . sort ( ) for key in keys : if ( key not in default_settings ) : output . append ( ( '%s = %s  ###' % ( key , user_settings [ key ] ) ) ) elif ( user_settings [ key ] != default_settings [ key ] ) : output . append ( ( '%s = %s' % ( key , user_settings [ key ] ) ) ) print '\n' . join ( output )
displays differences between the current settings .