Problems with Django dbshell

Please, I don’t know what’s wrong, I used the south to migrate the model, my question is fine, to use the south or traditionally use django ie ( manage.py dbshell ).

My second question, I tried using manage.py dbshell , but I get a message every time.

'sqlite3' is not recognized as an internal or external command, operating program, or batch file.

Thanks.

+4
source share
3 answers

sqlite3 is a database that saves records in a single file, the dbshell command dbshell designed to navigate to the database shell. It works with MySQL and PostgreSQL, but not with SQLite.

By the way, if you use the south, its fine, dbshell , when you need to do something with the database, but if the south does this for you, everything is fine.

0
source

There is dbshell support for sqlite in fact, you just need to install the command line utility (a package called sqlite3 in Ubuntu).

+6
source

You will need to update the PATH environment variable with the folder for sqlite installed, where the sqlite3.exe executable is located

+5
source

Source: https://habr.com/ru/post/1379515/


All Articles