Django-AttributeError 'User' object has no attribute 'backend' (But…it does?)

前端 未结 3 2029
逝去的感伤
逝去的感伤 2021-01-31 07:28

In order to sign users in after registering them, I manually set the user.backend property. It normally works in my views. In this instance, I\'m trying to register the user v

3条回答
  •  盖世英雄少女心
    2021-01-31 08:09

    in Django 1.10, django.contrib.auth.login now takes a backend= keyword argument!

    https://code.djangoproject.com/ticket/24855

提交回复
热议问题