def main_page(request):
c = {}
c.update(csrf(request))
if not request.user.is_authenticated():
return HttpResponseRedirect('/accounts/login')
else:
return render_to_response('homeTemplate.html',c)
$('#goHome').click(function(){
//? ajax?
})