ProgrammingError at /sign-up/

i recently deplolyed my todoapp on heroku and it works just fine, at least until i try creating an account then it prompts me with this error:

relation "auth_user" does not exist LINE 1: SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."username

i'm so confused ive tried so many things i.e Heroku app python manage.py makemigrations i get an error something about id not found.

is there anythin i can do?

my register view
def register(request):
     if request.user.is_authenticated:
          return redirect('home')
     form = registerform()
     if request.method == 'POST':
        form = registerform(request.POST)
        if form.is_valid():
            user = form.save(commit=False)
            user.username = user.username.lower()
            user.save()
            login(request, user)              
            return redirect('home')
        else:
            messages.error(request, 'User does not exist')
        
     return render(request, 'register.html', {'form' : form})


forms.py
class registerform(UserCreationForm):
    class Meta:
        model = User
        fields = ['username', 'password1', 'password2']
Back to Top