def celery_settings(request):
 capital = re.compile('^[A-Z]')
 settings = [key for key in dir(current_app.conf) if capital.match(key)]
 sorted_settings = [{'key': key, 'value': ('*****' if ('password' in key.lower()) else getattr(current_app.conf, key))} for key in sorted(settings)]
 return render_to_response('kadmin/settings.html', {'settings': sorted_settings, 'title': 'Celery Settings'}, RequestContext(request, {}))

def celery_settings ( request ) : capital = re . compile ( '^[A-Z]' ) settings = [ key for key in dir ( current_app . conf ) if capital . match ( key ) ] sorted_settings = [ { 'key' : key , 'value' : ( '*****' if ( 'password' in key . lower ( ) ) else getattr ( current_app . conf , key ) ) } for key in sorted ( settings ) ] return render_to_response ( 'kadmin/settings.html' , { 'settings' : sorted_settings , 'title' : 'Celery Settings' } , RequestContext ( request , { } ) )
admin view that displays the celery configuration .