When you learn that Django performs manage.py Dbshell on a book, "' Sqlite3 ' is not an internal or external command, or a program or batch file that can be run. ”
This means that there is no "sqlite3" in the environment variable.
I'm using python2.7, Sqlite3 is self-contained, no wonder it is not found in environment variables, the solution is naturally reset in the environment variable.
1. First re-download the sqlite3. Http://www.sqlite.org/2014/sqlite-shell-osx-x86-3080600.zip
2. Unzip to a file.
3. Then set environment variables, my Computer properties advanced system settings Advanced environment variables new variable name: Sqlite3 variable Value: (The address extracted in step 2 + sqlite3.exe)
This should be no problem, but after I set up, re-execute manage.py dbshell a very strange syntax error, my project is saved in the Python do sub-file, I executed after the report, near do syntax error. Google for a long time also did not find the problem, reported the mentality of trying to change the python do-"Pythondo didn't think so." T T