解决Django报错:SQLITE 3.8.3 OR LATER IS REQUIRED
django在linux服务器执行python3 manage.py migrate,会产生了如下的错误输出:
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).
django发现Python使用的sqlite版本过低,不满足要求。因此,我尝试升级自带的sqlite。使用sqlite3 –version查看了CentOS的Sqlite为3.7
网上有很多的教程,但是感觉都好繁琐
最简单的方法:
django安装在哪些路径下,在我的系统上,需要找到/…/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py这个脚本,django判断当前使用的sqlite版本的代码就在这里,找到以下代码块,注释掉那一行代码并更改:
def check_sqlite_version():
# if Database.sqlite_version_info < (3, 8, 3):
if Database.sqlite_version_info < (3, 6, 3):
raise ImproperlyConfigured('SQLite 3.8.3 or later is required(found %s).' % Database.sqlite_version)
check_sqlite_version()
再次尝试django-admin startproject webApps便会执行成功。
作者:迷神笔记
链接:https://www.jianshu.com/p/63f885ba2ba7
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
解决Django报错:SQLITE 3.8.3 OR LATER IS REQUIRED相关推荐
- 报错(SQLite 3.8.3 or later is required (found 3.7.17).)的解决办法
在服务器上刚部署完Django项目,python manage.py runserver 0.0.0.0:8000启动启动的时候报错:django.core.exceptions.Improperly ...
- cmake安装更新(解决cmake报错:CMake 3.8 or higher is required. You are running version 3.5.1
https://www.cnblogs.com/jsdy/p/12689470.html
- Django报错 ValueError: The view didn‘t return an HttpResponse object. It returned None instead.
Django报错 ValueError: The view *** didn't return an HttpResponse object. It returned None instead. __ ...
- git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists)....
Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 解决办法一:保 ...
- 解决Redis报错:MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist
解决Redis报错:MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on ...
- 解决Python报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 658: illegal multibyte
解决Python报错–UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 658: illegal multibyte ...
- 解决gcc报错:error: implicit declaration of function ‘inet_addr’ [-Werror=implicit-function-declaration]
此文首发于我的个人博客:解决gcc报错 error implicit declaration of function 'inet_addr' [-Werror=implicit-function-de ...
- 解决WAS报错SRVE0207E: servlet 创建了未捕获到的初始化异常
解决WAS报错SRVE0207E: servlet 创建了未捕获到的初始化异常 参考文章: (1)解决WAS报错SRVE0207E: servlet 创建了未捕获到的初始化异常 (2)https:// ...
- vue解决启动报错cjs loader.js Error: Cannot find module ‘../config‘问题
vue解决启动报错cjs loader.js Error: Cannot find module '../config'问题 参考文章: (1)vue解决启动报错cjs loader.js Error ...
最新文章
- autoware框架与功能简介(一)
- Java 8 - 07 复合 Lambda 表达式
- typeof null的返回值是什么?_数据类型与typeof
- 【2019牛客暑期多校训练营(第二场) - D】Kth Minimum Clique(bfs,tricks)
- Kibana查询ES报错:[circuit_breaking_exception] [parent] Data too large
- 读书笔记∣疯狂XML讲义
- 301 302区别_302状态码代表什么,302状态码解决方法
- 【DFS】LeetCode 39. Combination Sum
- javascript跨域、iframe跨域访问
- awk的关联数组版本支持
- linux系统虚拟机gcc下载,Linux(Ubuntu)虚拟机安装GCC编译器
- Sphinx PHP api全文检索的例子
- Detach Procedure
- 【Java刷题】04_二叉树的左右视图
- CentOS7下安装FTP服务
- ICLR22 自监督graph learning------------AUTOMATED SELF-SUPERVISED LEARNING FORGRAPHS--- 密歇根州立
- 雷电模拟器运行一直不动解决方案
- Uncaught TypeError: Cannot read property ‘dispatch‘ of undefined
- MySQL查询增强--多子句查询
- Fall 2011 CS193P Assignment 2: 可编程计算器答案