Run sqlite3 with python in command line

Assuming that you want to inspect the database created by django, and assuming that the sqlite executable is installed, you can do the following to run sqlite in the command line:

./manage.py dbshell

More information on this command can be found in the django documentation.


Python itself dosen't contain a sqlite3 command.

But the SQLite library includes a simple command-line utility named sqlite3 (or sqlite3.exe on windows) that allows the user to manually enter and execute SQL commands against an SQLite database. You can download it from here.