Django's template doesn't render as expected (template language issue)

Ignore

In your other post your backend’s authenticate signature was:

def authenticate(self, username=None, password=None):

It should be:

def authenticate(self, request, username=None, password=None):

Also be sure to define the get_user method on your backend:

def get_user(self, user_id):
    try:
        return User.objects.get(pk=user_id)
    except User.DoesNotExist:
        return None

The above was pulled from the example at https://docs.djangoproject.com/en/3.1/topics/auth/customizing/#writing-an-authentication-backend