赞
踩
本机django1.7.1,服务器django1.6.4版本 + Apache + wsgi部署,出现500页面,检查Apache error.log发现:
- ImproperlyConfigured: Module "django.contrib.auth.middleware" does not define a "SessionAuthenticationMiddleware" attribute/class"
升级到django1.7
sudo pip install django
python -c "import django; print(django.get_version())"
在settings.py中MIDDLEWARE_CLASSES处注释掉SessionAuthenticationMiddleware
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。