Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django.db.utils.NotSupportedError: URIs not supported #2

Open
imjdl opened this issue Sep 9, 2018 · 3 comments
Open

django.db.utils.NotSupportedError: URIs not supported #2

imjdl opened this issue Sep 9, 2018 · 3 comments
Labels
bug Something isn't working

Comments

@imjdl
Copy link
Owner

imjdl commented Sep 9, 2018

No description provided.

@imjdl
Copy link
Owner Author

imjdl commented Sep 9, 2018

原因分析,这是sqlite3版本3.7的通病,安装3.8的就可以,这里我采用修改源码的方式,直接打开

"/home/python3/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py"这个文件,修改修改大概198行,通过搜索uri查找。
if self.features.can_share_in_memory_db:
kwargs.update({'uri': False}) #这里原来是True,修改为False就可以了
return kwargs

@imjdl imjdl added the help wanted Extra attention is needed label Feb 18, 2019
@imjdl imjdl added bug Something isn't working and removed help wanted Extra attention is needed labels Sep 3, 2019
@LizhangX
Copy link

LizhangX commented Jan 9, 2020

完美,谢谢大神 :)

@imjdl
Copy link
Owner Author

imjdl commented Jan 9, 2020

完美,谢谢大神 :)

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants