Reputation: 18745
I'm trying to use a new version of Django (1.9)
. I've created a virtual environment (venv) in which I've installed new Django (1.9)
. Everything seems to work correctly but when I do manage.py runserver
it seems that it uses older version of Django (1.8.7)
.
My venv
is activated so I don't know why it behaves this way.
I'm attaching cmd
commands from scratch:
Do you know where is the problem?
Upvotes: 0
Views: 220
Reputation: 6474
The shebang line in the manage.py points to the global installed python. If you change it to the venv python it should work as used normally.
Upvotes: 2
Reputation: 2817
I guess manage.py uses system-wide python executable: look at its shebang (first line). Try running python manage.py ...
Upvotes: 6