#NEWLINE# def home( request ) : #NEWLINE# #INDENT# post = None #NEWLINE# form = PostForm ( ( form . POST or None ) ) #NEWLINE# if request . POST : #NEWLINE# #INDENT# if form . is_valid ( ) : #NEWLINE# #INDENT# post = form . save ( ) #NEWLINE# #UNINDENT# #UNINDENT# posts = Post . view ( 'blog_app/all_posts' , descending = True ) #NEWLINE# return render_to_response ( 'home.html' , { #NEWLINE# #INDENT# 'form' : form , #NEWLINE# 'post' : post , #NEWLINE# 'posts' : posts , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )