Django 报错 admin.E408 admin.E409 admin.E410

 

报错内容

Django 报错 admin.E408 admin.E409 admin.E410
ERRORS:
?: (admin.E408) 'django.contrib.auth.middleware.AuthenticationMiddleware' must be in MIDDLEWARE in order to use the admin application.
?: (admin.E409) 'django.contrib.messages.middleware.MessageMiddleware' must be in MIDDLEWARE in order to use the admin application.
?: (admin.E410) 'django.contrib.sessions.middleware.SessionMiddleware' must be in MIDDLEWARE in order to use the admin application.
Django 报错 admin.E408 admin.E409 admin.E410

 

报错图片:

Django 报错 admin.E408 admin.E409 admin.E410

 

解决办法:

Django 报错 admin.E408 admin.E409 admin.E410

 

1.将 MIDDLEWARE_CLASSES 改为 MIDDLEWARE  

2.将  'django,contrib.auth.middleware.SessionAuthenticationMiddleware',  删除

FYI:https://www.cnblogs.com/dyd520/p/11598490.html

上一篇:hive应用基础知识备忘


下一篇:OpenCV 4 module 'cv2.cv2' has no attribute 'TrackerKCF_create'