On my server (digitalocean droplet), when I activate my virtual environment, it seems something is not working. I say the because:
- It does not give me the virtual environment name inside paranthesis on the command line
- When I run
deactivate
commend, it saysdeactivate: command not found
user@django-s-1vcpu-2gb-sfo3-01:~/example$source env/bin/activate
user@django-s-1vcpu-2gb-sfo3-01:~/example$
running source env/bin/activate
should output the following command line:
(user) user@django-s-1vcpu-2gb-sfo3-01:~/example$
I did check which folder I am at and if the env virtual environment is shown under that folder. I also looked at this point, and when I go to python manage.py shell
and type those lines of code, it says I am not in the virtualenv! So, why is that? and how to fix it without completely mess up my live production site?