Django - ImproperlyConfigured: Module “django.contrib.auth.middleware”

后端 未结 13 747
我寻月下人不归
我寻月下人不归 2020-12-30 19:25

I\'m running a virtualenv to try to learn Django, but for whatever reason after installing Django and when I try to access the default Django start page, I get the following

13条回答
  •  粉色の甜心
    2020-12-30 19:59

    easy solution

    just remove

    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    

    from

    MIDDLEWARE_CLASSES = (
    ...
    ...
    )
    

    in your project's settings.py

    then, it should work!

提交回复
热议问题