python manage.py makemigrations的时候报错:
?: (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.
解决办法:
在settings中把MIDDLEWARE_CLASSES 改名为MIDDLEWARE,并且把字典里的 ‘django.contrib.auth.middleware.SessionAuthenticationMiddleware’, 删除