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.
复制代码
复制代码

 

报错图片:

 

解决办法:

 

1.将 MIDDLEWARE_CLASSES 改为 MIDDLEWARE  

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

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

posted @   DaisyLinux  阅读(253)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示