login() got an unexpected keyword argument 'extra_context'

 

 Environment: xadmin django2.0 python3.7.4

Operation login login () or cancellation logout () reported more wrong solution is as follows:

In xadmin of views / website.py in 

amend as below:

 

 

from django.contrib.auth.views import login
from django.contrib.auth.views import logout

  

Guess you like

Origin www.cnblogs.com/zmdComeOn/p/12109929.html