I'm looking for the solution to how can I run manage.py dbshell in a virtual environment without error: CommandError: You appear not to have the 'sqlite3' program installed or on your path.
I have installed Python in venv. I added the path to environment variables. I can populate db in the Django project, so it's not a case of not working MySQL. Answers for similar questions somehow doesn't work in my case. Windows 10, python 3.x
CodePudding user response:
Just found the answer. It wasn't a problem with the environment variables.
If anyone will have the same issue on Windows 10 with Windows PowerShell, or with this shell via Windows Terminal Preview, then to solve it you have to:
That's all. That solves the problem. Now you can run manage.py dbshell from the directory that includes manage.py.
Keep in mind to always create a new Django project with a virtual environment! If you forget about it, it is easier to make a new project (and much much faster) and copy the scripts than to try to configure the virtual environment for the created project.

