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