Django问题汇总

Q1.运行python manage.py runserver后,出现如下错误(CentOS6.5x86,Python2.7.12,Django1.10):

django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named _sqlite3

解决方案: 实际上是需要安装sqlite的开发包,方法如下
1) yum install sqlite-devel
2) 重新make python:
make
3) 安装: 
make altinstall

 

posted @ 2016-08-09 21:28  $nail  阅读(151)  评论(0编辑  收藏  举报