[英]python sqlite3 BASE_DIR is not recognized as the name
我使用 Windows 10,我刚启动 python
为什么我的根代码只是'NAME': BASE_DIR / 'db.sqlite3'
,在搜索时,很多人想出了'NAME': os.path.join(BASE_DIR, 'db.sqlite3')
,这样。 为什么只有我不同?
当我尝试检查数据库时,无法检查它。 但是,可以通过迁移来更新数据库。 如何检查数据的make sqlite3?
(fcdjango_env) PS C:\python_mvt\fc_community> sqlite3 db.sqlite3
sqlite3: The term 'sqlite3' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
我使用 Windows 10,我刚启动 python
为什么我的根代码只是'NAME': BASE_DIR / 'db.sqlite3'
,搜索时,很多人想出'NAME': os.path.join(BASE_DIR, 'db.sqlite3')
,这样。 为什么只有我不同?
当我尝试检查数据库时,无法检查它。 但是,可以通过迁移来更新数据库。 如何检查数据的make sqlite3?
(fcdjango_env) PS C:\python_mvt\fc_community> sqlite3 db.sqlite3
sqlite3: The term 'sqlite3' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
你问了两个问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.