<s> from __future__ import absolute_import , unicode_literals <EOL> from collections import OrderedDict <EOL> from django . conf import settings <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from django . views . debug import get_safe_settings <EOL> from debug_toolbar . panels import Panel <EOL> class SettingsPanel ( Panel ) : <EOL> """<STR_LIT>""" <EOL> template = '<STR_LIT>' <EOL> nav_title = _ ( "<STR_LIT>" ) <EOL> def title ( self ) : <EOL> return _ ( "<STR_LIT>" ) % settings . SETTINGS_MODULE <EOL> def generate_stats ( self , request , response ) : <EOL> self . record_stats ( { <EOL> '<STR_LIT>' : OrderedDict ( sorted ( get_safe_settings ( ) . items ( ) , <EOL> key = lambda s : s [ <NUM_LIT:0> ] ) ) , <EOL> } ) </s>
