def settings(request):
 settings = debug.get_safe_settings()
 sorted_settings = [{'key': key, 'value': settings[key]} for key in sorted(settings.keys())]
 return render_to_response('kadmin/settings.html', {'pythonpath': sys.path, 'settings': sorted_settings, 'title': 'Settings'}, RequestContext(request, {}))

def settings ( request ) : settings = debug . get_safe_settings ( ) sorted_settings = [ { 'key' : key , 'value' : settings [ key ] } for key in sorted ( settings . keys ( ) ) ] return render_to_response ( 'kadmin/settings.html' , { 'pythonpath' : sys . path , 'settings' : sorted_settings , 'title' : 'Settings' } , RequestContext ( request , { } ) )
nest context managers and/or override env variables .