Django Server启动出现SessionAuthenticationMiddleware问题解决方法
2014-11-13 00:23
453 查看
问题描述:
本机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"
查阅资料SessionAuthenticationMiddleware是django1.7中的特性
方法一:
升级到django1.7sudo pip install django
查询当前版本
python -c "import django; print(django.get_version())"
方法二:
在settings.py中MIDDLEWARE_CLASSES处注释掉SessionAuthenticationMiddleware相关文章推荐
- cloudera-scm-server启动时出现Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection问题解决方法(图文详解)
- cloudera-scm-server启动时出现Caused by: java.io.FileNotFoundException: /var/lib/cloudera-scm-server/.keystore (No such file or directory)问题解决方法(图文详解)
- phpmyadmin出现Cannot start session without errors问题解决方法
- 已安装好的Ubuntu启动出现 busybox initramfs 问题可能的解决方法
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- 配置安装Nagios启动apache时出现问题解决方法
- hadoop 安装出现的几种异常的处理方法,hadoop无法启动,no namenode to stop问题的解决方法,no datanode
- phpmyadmin出现Cannot start session without errors问题解决方法
- Ubuntu 14.04 isc-dhcp-server 启动失败(no IPv4 addresses)问题解决方法
- Win10下VMWare正常使用,但Win10 Update后出现无法启动问题的解决方法
- mongodb启动出现问题解决方法。
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- (word导出问题)解决:服务器出现意外情况。 (异常来自 HRESULT:0x80010105 (RPC_E_SERVERFAULT))的解决方法
- 由于计算机磁盘硬件配置出现问题,导致 Windows 无法启动的解决方法 由于计算机磁盘硬件配置出现问题,导致 Windows 无法启动
- SQL Server Agent无法启动问题解决方法
- jfreechart出现ChartDeleter没有序列化问题导致session信息丢失的解决方法
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- 从eclipse3.4中启动tomcat6.0.16出现有关“SetPropertiesRule”错误的问题解决方法[转载]
- 解决IIS出现server application unavailable问题的方法
- wampserver2.5安装在服务器时出现应用程序无法正常启动0xc000007b,wampserver2.5一直打不开的解决方法