4

I'm trying to bind my virtualenv to django project. So when I type the command workon my_project it should cd to my django project.

(my_project) C:\User\User\Desktop\Project>
(my_project) C:\User\User\Desktop\Project>setvirtualenvproject
'setvirtualenvproject' is not recognized as an internal or external command, operable program or batch file.

Why the command doesn't work? Is there another way of binding virtualenv to my django project?

RESOLVED

I've managed to bind my virtualenv to my django project using this command

setprojectdir [path to the project folder]
Neptunas
  • 133
  • 6

2 Answers2

9

I've managed to bind my virtualenv to my django project using this command

setprojectdir [path to the project folder]
Neptunas
  • 133
  • 6
  • 5
    It seems virtualenvwrapper-win has some commands renamed. setvirtualenvproject -> setprojectdir; toggsitepackages -> toggleglobalsitepackages. – phd Jun 18 '17 at 11:16
3

setvirtualenvproject is a command from virtualenvwrapper. Do you have virtualenvwrapper-win installed?

phd
  • 82,685
  • 13
  • 120
  • 165
  • I do. I created my virtualenv using mkvirtualenv command which is a virtualenvwrapper command. The environment was stored in my User\Envs\my_project. – Neptunas Jun 18 '17 at 10:13