I have been given an existing project to work on and I am really struggling to get the environment set up.
The project folder firstly contains manage.py server, which I use as an entry point to run the server.
There is also a venv folder which contains all the modules etc. I need.
So when I do runserver on manage.py, I get that "No module named sqlserver_ado.base". Even when I have activated the virtual environment and am in bash.... this module for instance is in venv folder in a venv\Lib\site-packages
.
I am so very confused. I have also tried copying whatever modules are said to be missing and have ran into other issues this way also.
virtualenv venv
in you desired directory source \your_folder\venv\bin\activate
(venv)
before $ in the shell
that mean you env is active pip install package_name
pip freeze
to get installed packagesmanage.py
filepython manage.py runserver
to make sure that evrything run fineto access django-shell run python manage.py shell