<s> from __future__ import unicode_literals <EOL> from django . conf import settings <EOL> from appconf import AppConf <EOL> def is_installed ( package ) : <EOL> try : <EOL> __import__ ( package ) <EOL> return True <EOL> except ImportError : <EOL> return False <EOL> DEFAULT_MARKUP_CHOICE_MAP = { <EOL> "<STR_LIT>" : { "<STR_LIT:label>" : "<STR_LIT>" , "<STR_LIT>" : "<STR_LIT>" } <EOL> } <EOL> if is_installed ( "<STR_LIT>" ) : <EOL> DEFAULT_MARKUP_CHOICE_MAP . update ( { <EOL> "<STR_LIT>" : { "<STR_LIT:label>" : "<STR_LIT>" , "<STR_LIT>" : "<STR_LIT>" } , <EOL> } ) <EOL> class PinaxBlogAppConf ( AppConf ) : <EOL> ALL_SECTION_NAME = "<STR_LIT:all>" <EOL> SECTIONS = [ ] <EOL> UNPUBLISHED_STATES = [ <EOL> "<STR_LIT>" <EOL> ] <EOL> FEED_TITLE = "<STR_LIT>" <EOL> SECTION_FEED_TITLE = "<STR_LIT>" <EOL> MARKUP_CHOICE_MAP = DEFAULT_MARKUP_CHOICE_MAP <EOL> MARKUP_CHOICES = DEFAULT_MARKUP_CHOICE_MAP <EOL> SLUG_UNIQUE = False <EOL> PAGINATE_BY = <NUM_LIT:10> <EOL> def configure_markup_choices ( self , value ) : <EOL> return [ <EOL> ( key , value [ key ] [ "<STR_LIT:label>" ] ) <EOL> for key in value . keys ( ) <EOL> ] <EOL> class Meta : <EOL> prefix = "<STR_LIT>" </s>
