'.schema' is not recognized as an internal or external command, operable program or batch file

385 views
Skip to first unread message

mango7

unread,
Dec 28, 2008, 8:24:31 PM12/28/08
to Django users
I am new to django, and following the tutorial at:
http://docs.djangoproject.com/en/dev/intro/tutorial01/?from=olddocs

I got as far as creating and syncing a DB, but when I type .schema
into my command prompt, I get:

'.schema' is not recognized as an internal or external command,
operable program or batch file

Does anyone know why this is? I was able to get through the end of
the tutorial otherwise.

Thanks in advance.

Jeff Hammerbacher

unread,
Dec 28, 2008, 9:46:47 PM12/28/08
to django...@googlegroups.com
Hey,

.schema is a command for the sqlite3 shell.  If you have sqlite3 installed and have set DATABASE_ENGINE to sqlite3, type "sqlite3 <filename>" at your shell. <filename> is file name specified by DATABASE_NAME in settings.py. You should be able to issue the ".schema" command successfully from there.

Regards,
Jeff
Reply all
Reply to author
Forward
0 new messages