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

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

    Refer to the doc, the Django in your active virtualenv must be Django 1.7. And:

    This middleware must appear after django.contrib.auth.middleware.AuthenticationMiddleware in MIDDLEWARE_CLASSES

    Does it solve your issue?

提交回复
热议问题