Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

sqlite

django

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!

like image 448
BluePython Avatar asked Dec 06 '22 05:12

BluePython


1 Answers

As with all database backends:

./manage.py dbshell
like image 74
Daniel Roseman Avatar answered Dec 08 '22 17:12

Daniel Roseman