BluePython
BluePython

Reputation: 1597

How do I access the db shell for SQLite on a Django project?

I am trying to update the column on a variable to allow null in a db shell so that I don't have to drop my table.

I have notice data.sqlite lives on the main folder and sqlite3.db lives on the "main app" subfolder. Why is that? Which one is the one I want to access?

I know they are 2 different files and in 2 different directories and that this is the standard configuration when a Django project is generated. I guess my question is what is the difference between this two files and if there is a reason they are not in the same folder. Thank!

Upvotes: 6

Views: 18941

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 599630

As with all database backends:

./manage.py dbshell

Upvotes: 18

Related Questions