#NEWLINE# def index( request ) : #NEWLINE# #INDENT# readme_file = join ( dirname ( dirname ( abspath ( __file__ ) ) ) , 'README.rst' ) #NEWLINE# raw_content = open ( readme_file ) . read ( ) #NEWLINE# try : #NEWLINE# #INDENT# content = restructuredtext ( raw_content ) #NEWLINE# #UNINDENT# except template . TemplateSyntaxError : #NEWLINE# #INDENT# content = ( ( '<pre>' + raw_content ) + '</pre>' ) #NEWLINE# #UNINDENT# return render_to_response ( 'index.html' , { #NEWLINE# #INDENT# 'content' : content , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )