关于digitalocean部署django时遇到runserver抛出问题不会解,djangorunserver,Traceback (m
关于digitalocean部署django时遇到runserver抛出问题不会解,djangorunserver,Traceback (m
Traceback (most recent call last): File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, self.start_response) File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 187, in __call__ self.load_middleware() File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 45, in load_middleware mw_class = import_by_path(middleware_path) File "/usr/lib/python2.7/dist-packages/django/utils/module_loading.py", line 31, in import_by_path error_prefix, module_path, class_name))ImproperlyConfigured: Module "django.contrib.auth.middleware" does not define a "SessionAuthenticationMiddleware" attribute/class
用的环境是digitalocean里面初始化application里面有个django的初始环境,Ubuntu14.0X
这个类是 django 1.7新加的,你的 django 版本太老了
如何查看django版本?打开python执行下面的代码
import djangodjango.VERSION
编橙之家文章,
相关内容
- Python新手数据嵌套问题,python新手嵌套,大家好,我是一
- pypi中没有tkinter吗?难道需要手动安装,pypitkinter安装,
- Python递归函数时间复杂度如何判断,python递归函数判断
- python开发的微信企业付款出现CA证书error,pythonca,我在做
- Python sqlalchemy批量数据插入优化注意事项有哪些?,pyt
- Python程序里用pdb方法进行调试时出现错误,pythonpdb,调试
- Python序列sort与bisect.insort及heapq.heappush哪种效率最高效,
- Python有大数据处理性能优化好方法吗,python性能优化
- python requests发送post Page load erro问题,requestserro,post过去
- 想用powershell写命令完成启动软件和调用python脚本怎么做
评论关闭