@login_required
def profile_redirect(request):
 return redirect(u'profile', username=request.user.username)

@ login_required def profile_redirect ( request ) : return redirect ( u'profile' , username = request . user . username )
just gives the url prefix for profiles an action - redirect to the logged in users profile .