Reverse for 'update_profile_picture' not found

Here is the view.

"'from django.shortcuts import render, redirect
from django.contrib.auth import login
from django.contrib.auth.forms import UserCreationForm

Create your views here.

def register(request):
“”“Register a new user.”“”
if request.method != ‘POST’:
#Display blank registration form.
form=UserCreationForm()
else:
#Process completed form
form = UserCreationForm(data=request.POST)

    if form.is_valid():
        new_user = form.save()
        login(request, new_user)
        return redirect('blog:index_view')

Return a blank or invalid form

context={'form':form}
return render(request, 'registration/register.html', context)"'

Side note: You need to use the backtick - ` not the apostrophe - ' in your markup for formatting. Also, the three backticks must be lines by themselves and not part of another line.

When you’re using a custom user, you cannot use the django.contrib.auth.forms.UserCreationForm directly. You do need to create your own version of this form that specifies your CustomUser as the model for the form.

You can create your form inheriting from UserCreationForm, and replacing the Meta class for that form to specify your model. (Whether or not you need to change anything else will depend upon what other requirements you have in your CustomUser model.