#NEWLINE# def logon( request ) : #NEWLINE# #INDENT# f = NSAForm ( request . POST ) #NEWLINE# if f . is_valid ( ) : #NEWLINE# #INDENT# request . session [ 'nsa_member' ] = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return render ( request , 'nsa/logon.html' , { #NEWLINE# #INDENT# 'form' : f , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return HttpResponseRedirect ( reverse ( 'nsa_index' ) )