AttributeError: module 'django.contrib.auth.views' has no attribute 'login'

前端 未结 2 1650
执念已碎
执念已碎 2020-12-21 00:54

I got error on my django rest framework, I am running it on windows 10 OS. this is the entire error:

Traceback (most recent call last):
  File \"manage.py\",         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-21 01:22

    You are using the unreleased master branch of Django, which has removed the old function-based login view. You should use the released version 1.11, where they are still present (but deprecated).

    The latest master of DRF has removed this reference, but you should stick with released versions anyway.

提交回复
热议问题