Reputation: 2528
I just installed Django 1.5.1 with Python 2.7. SQLite3 comes with it. I ran "python manage.py syncdb", which ran successfully and now I want to see what tables were created. I ran the sqlite3 cmd line tool and in a sqlite prompt I did the following:
What did I do wrong? Thanks
Upvotes: 5
Views: 6674
Reputation: 41
If your current working directory contains the database, then you can more simply use
sqlite3 ./dbfile.db
This saves you a lot of typing in path names. Alternately you can export the PATH
at the start of your session.
Upvotes: 4
Reputation: 8986
.tables
shows master db tables. Try this:
$ sqlite3 /home/thisUser/PyWorkspace/dbfile.db
then
sqlite> .tables
Upvotes: 9