def METHOD_NAME(profile_data):
    user, created = User.objects.get_or_create(
        username=profile_data['username'],
        first_name=profile_data['name'],
        email=profile_data['email'])
    user.set_password(profile_data['password1'])
    user.save()
    new_profile, created = UserProfile.objects.get_or_create(
        user=user, name=profile_data['name'],
        city=profile_data['city'],
        country=profile_data['country'],
        organization=profile_data['organization'],
        home_page=profile_data['home_page'],
        twitter=profile_data['twitter'],
        require_auth=False
    )
    return new_profile