出现问题:
django.db.utils.NotSupportedError: URIs not supported
尝试1:
wget http://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz
tar -xvzf sqlite-autoconf-3081101.tar.gz
cd sq.......下
(1)./configure
(2)make
(3)sudo make install
(4)sudo ldconfig
失败!!!!!!!!!!!!!
尝试2:
使用数据库为sqlite3可能会出现如下错误:
django.db.utils.NotSupportedError: URIs not supported
应该修改根据错误提示的路径下的base.py文件
if self.features.can_share_in_memory_db:
kwargs.update({‘uri‘: True}) # 将此处的True改为False
return kwargs
成功!!!!!!!!!!!
python3 manage.py runserver
无法访问
vi xgfp/settings.py
修改setting.py文件
ALLOWED_HOSTS = ['*'] #在这里请求的host添加了'*'
==============================>
python3 manage.py runserver
项目已能成功运行!
配置uwsgi