<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def custom_add_user_view(request):
    ''' The page to add a new user. '''
    page_name = "Admin - Add User"
    add_user_form = AddUserForm(request.POST or None, initial={
        'status': UserProfile.RESIDENT,
        })
    if add_user_form.is_valid():
        add_user_form.save()
        message = MESSAGES['USER_ADDED'].format(
            username=add_user_form.cleaned_data["username"])
        messages.add_message(request, messages.SUCCESS, message)
        return HttpResponseRedirect(reverse('custom_add_user'))
    return render_to_response('custom_add_user.html', {
        'page_name': page_name,
        'add_user_form': add_user_form,
        'members': User.objects.all().exclude(username=ANONYMOUS_USERNAME),
        }, context_instance=RequestContext(request))