当前位置:   article > 正文

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

(admin.e409) 'django.contrib.messages.middleware.messagemiddleware' must be

报错内容

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',  删除

 

转载于:https://www.cnblogs.com/dyd520/p/11598490.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/71739
推荐阅读
相关标签
  

闽ICP备14008679号