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

后端 未结 13 607
我寻月下人不归
我寻月下人不归 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:55

    I have created a Django project with Django 1.7 and tried to run it with Django 1.6.8. And I got the same error. I have just removed

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

    from

    MIDDLEWARE_CLASSES =

    in my project's settings.py. And it works.

提交回复
热议问题