@login_required
def profile_redirect(request):
    return redirect("profile", username=request.user.username)
Just gives the URL prefix for profiles an action - redirect
dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/accounts/views.py/profile_redirect