title: try/except in django, good practices
body: <p>This part of code represents a index of my web page 
  eg: 127.0.0.1:8000/</p>
  
  <pre><code>def IndexView(request):
      try:
          profile = request.user.get_profile() 
      except User.DoesNotExist:
          return render_to_response('index.html',
                                {'request': request,},
                                context_instance=RequestContext(request))
  
      return render_to_response('index.html',
                    {'request': request, 'profile' : profile},
                    context_instance=RequestContext(request))  
  </code></pre>
  
  <p>Why i'm still getting this error on debug?</p>
  
  <p>AttributeError at /
  'AnonymousUser' object has no attribute 'get_profile'</p>
  
  <p>thanks in advance</p>