<s> """<STR_LIT>""" <EOL> from django . conf import settings <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> from fluent_utils . load import import_class <EOL> from parler import appsettings as parler_appsettings <EOL> FLUENT_CONTENTS_CACHE_OUTPUT = getattr ( settings , '<STR_LIT>' , True ) <EOL> FLUENT_CONTENTS_CACHE_PLACEHOLDER_OUTPUT = getattr ( settings , '<STR_LIT>' , False ) <EOL> FLUENT_CONTENTS_PLACEHOLDER_CONFIG = getattr ( settings , '<STR_LIT>' , { } ) <EOL> FLUENT_DEFAULT_LANGUAGE_CODE = getattr ( settings , '<STR_LIT>' , parler_appsettings . PARLER_DEFAULT_LANGUAGE_CODE ) <EOL> FLUENT_CONTENTS_DEFAULT_LANGUAGE_CODE = getattr ( settings , '<STR_LIT>' , FLUENT_DEFAULT_LANGUAGE_CODE ) <EOL> FLUENT_CONTENTS_FILTER_SITE_ID = getattr ( settings , "<STR_LIT>" , True ) <EOL> FLUENT_TEXT_CLEAN_HTML = getattr ( settings , "<STR_LIT>" , False ) <EOL> FLUENT_TEXT_SANITIZE_HTML = getattr ( settings , "<STR_LIT>" , False ) <EOL> FLUENT_TEXT_PRE_FILTERS = getattr ( settings , "<STR_LIT>" , ( ) ) <EOL> FLUENT_TEXT_POST_FILTERS = getattr ( settings , "<STR_LIT>" , ( ) ) <EOL> def _load_callables ( setting_name , setting_value ) : <EOL> funcs = [ ] <EOL> for import_path in setting_value : <EOL> func = import_class ( import_path , setting_name ) <EOL> if not callable ( func ) : <EOL> raise ImproperlyConfigured ( "<STR_LIT>" . format ( setting_name , import_path ) ) <EOL> funcs . append ( func ) <EOL> return funcs <EOL> PRE_FILTER_FUNCTIONS = _load_callables ( '<STR_LIT>' , FLUENT_TEXT_PRE_FILTERS ) <EOL> POST_FILTER_FUNCTIONS = _load_callables ( '<STR_LIT>' , FLUENT_TEXT_POST_FILTERS ) <EOL> if FLUENT_TEXT_CLEAN_HTML or FLUENT_TEXT_SANITIZE_HTML : <EOL> try : <EOL> import django_wysiwyg <EOL> except ImportError : <EOL> raise ImproperlyConfigured ( <EOL> "<STR_LIT>" <EOL> ) </s>
