<s> import os <EOL> extensions = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> templates_path = [ '<STR_LIT>' ] <EOL> source_suffix = '<STR_LIT>' <EOL> sphinx_to_github = True <EOL> sphinx_to_github_verbose = True <EOL> master_doc = '<STR_LIT:index>' <EOL> project = u'<STR_LIT>' <EOL> copyright = u'<STR_LIT>' <EOL> exclude_patterns = [ ] <EOL> pygments_style = '<STR_LIT>' <EOL> on_rtd = os . environ . get ( '<STR_LIT>' , False ) <EOL> if on_rtd : <EOL> html_theme = '<STR_LIT>' <EOL> else : <EOL> html_theme = '<STR_LIT:default>' <EOL> html_static_path = [ '<STR_LIT>' ] <EOL> htmlhelp_basename = '<STR_LIT>' <EOL> latex_elements = { <EOL> } <EOL> latex_documents = [ <EOL> ( '<STR_LIT:index>' , '<STR_LIT>' , u'<STR_LIT>' , <EOL> u'<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> man_pages = [ <EOL> ( '<STR_LIT:index>' , '<STR_LIT>' , u'<STR_LIT>' , <EOL> [ u'<STR_LIT>' ] , <NUM_LIT:1> ) <EOL> ] <EOL> texinfo_documents = [ <EOL> ( '<STR_LIT:index>' , '<STR_LIT>' , u'<STR_LIT>' , <EOL> u'<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) , <EOL> ] <EOL> import os <EOL> import sys <EOL> import inspect <EOL> from django . utils . html import strip_tags <EOL> from django . utils . encoding import force_text <EOL> BASEDIR = os . path . abspath ( os . path . dirname ( __file__ ) + '<STR_LIT>' ) <EOL> sys . path . append ( BASEDIR ) <EOL> os . environ . setdefault ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> import data_importer <EOL> version = data_importer . __version__ <EOL> release = data_importer . __version__ <EOL> def process_docstring ( app , what , name , obj , options , lines ) : <EOL> from django . db import models <EOL> if inspect . isclass ( obj ) and issubclass ( obj , models . Model ) : <EOL> fields = obj . _meta . _fields ( ) <EOL> for field in fields : <EOL> help_text = strip_tags ( force_text ( field . help_text ) ) <EOL> verbose_name = force_text ( field . verbose_name ) . capitalize ( ) <EOL> if help_text : <EOL> lines . append ( u'<STR_LIT>' % ( field . attname , help_text ) ) <EOL> else : <EOL> lines . append ( u'<STR_LIT>' % ( field . attname , verbose_name ) ) <EOL> lines . append ( u'<STR_LIT>' % ( field . attname , type ( field ) . __name__ ) ) <EOL> return lines <EOL> def setup ( app ) : <EOL> app . connect ( '<STR_LIT>' , process_docstring ) </s>
