django - 当lanuching dbshel​​l sqlite3太多选项 [英] django - too many options when lanuching dbshell sqlite3

查看:145
本文介绍了django - 当lanuching dbshel​​l sqlite3太多选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有django 1.2.3.0最终和我使用Python 2.7



在我的设置中,我的'sqlite3'为DATABASE_ENGINE填充。
我可以使用sqlite3(在djano manage.py shell级别),直到我被告知需要访问


python manage.py dbshel​​l


起初我得到错误sqlite3不被识别....
然后我读了线程,我发现这可以通过下载
的exe文件并在Windows上设置环境变量路径来解决(我在
XP Pro上)



我用这个方法代替
http:/ /groups.google.com/group/django-users/msg/cf0665c227030ae2



现在,当我访问 python manage.py dbshel​​l ,我得到

  C:\Documents and Settings\JohnWong\workspace\mysite\mysite> python 
manage.py dbsh
ell
sqlite3:错误:太多选项:Settings\JohnWong\workspace\mysite
\sqli te.db

为选项列表使用-help。

我尝试使用--database = name_of_my_db,仍然没有运气



任何输入都不胜感激。
谢谢

解决方案

asker回答了自己的问题这里


I have django 1.2.3.0 Final and I am using Python 2.7

In my setting, I have 'sqlite3' filled for the DATABASE_ENGINE. I am able to work with the sqlite3 (at the level of djano manage.py shell) until I am told that I need to access

python manage.py dbshell

At first I got the error "sqlite3 is not recognized...." Then I read threads and I found that this can be solved by downloading the exe file and set the environment variable path on Windows (I am on XP Pro)

I used this approach instead http://groups.google.com/group/django-users/msg/cf0665c227030ae2?

Now when I access python manage.py dbshell, I am getting

C:\Documents and Settings\JohnWong\workspace\mysite\mysite>python
manage.py dbsh
ell
sqlite3: Error: too many options: "Settings\JohnWong\workspace\mysite
\sqlite.db"

Use -help for a list of options.

I tried with --database=name_of_my_db and still no luck

Any input is appreciated. Thanks

解决方案

The asker answered his own question here.

这篇关于django - 当lanuching dbshel​​l sqlite3太多选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆