another question, but where should i put the 'sqlite3.exe' in order to
use the 'python manage.py dbshell' command?

On Mar 3, 10:48 am, jason <zou...@gmail.com> wrote:
> understood. thanks very much:-)
>
> On Feb 26, 8:03 pm, Ramiro Morales <cra...@gmail.com> wrote:
>
>
>
> > On Thu, Feb 26, 2009 at 9:51 AM, jason zones <zou...@gmail.com> wrote:
> > > hello, all.
> > > i have a problem when i type "python manage.py dbshell" in the commandline
> > > within the mysite folder. i used sqlite3 as the db.
> > > when i typed the command, it showed the error "You appear not to have the
> > > 'sqlite3' program installed or on your path."
> > > my installed python version is 2.6 and it is said the sqlite3 being a
> > > module in the python, so i tried "import sqlite3", and it worked. so it
> > > seemed sqlite3 module was there in the python, but it just cannot go into
> > > the dbshell with "python manage.py dbshell" as the djangobook told. i also
> > > tried to append the dir"c:\python26\Lib\sqlite3" to the sys path, but it
> > > seemed not work.  my operating system is windows xp, anyone knows what's
> > > wrong?
>
> > There are two thing named sqlite3 at play here:
>
> > First, the sqlite3 module that is part of the standard library  for Python 
> > 2.5
> > and newer. The fact that's it's included means, in your platform, some files
> > and directories named sqlite3.* and _sqlite3 under your C:\python2x
> > installation directory, but you aren't supposed to mess with them because 
> > they
> > are an implementation detail and you'd be breaking your Python installation 
> > if
> > you did (just for completeness: they are the SQLite library in a dynamic
> > library form and the Python DB-API 2module that allows Python programs like
> > Django to access SQLite databases).
>
> > Second there is the sqlite3.exe utility that can be download from SQLIte web
> > site. It's a program that also knows how to access SQLite databases because 
> > it
> > includes the SQLite library compiled statically for its own use (so the 
> > program
> > can be used in an standalone fashion).
>
> > The dbshell Django management command uses this utility. So you need
> > to download sqlite3.exe if you want to use it.
>
> > Regards,
>
> > --
> >  Ramiro Morales- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to