Forums

django version shows as 1.3.7 even after installing the latest django using "pip install -U django"

Followed the "https://www.pythonanywhere.com/wiki/VirtualEnvForNewerDjango" tutorial for setting up my virtual environment, i need python version 2.7 and django version 1.7 , but the django version is always shows as 1.3.7 even after installing the latest version using the command

pip install -U django I am getting the version using command django-admin.py --version Is there any thing i am doing wrong here. I am using bash console to do these.

You're probably not activating the virtualenv before you install the new Django, or perhaps you're not activating it when you're checking the version.

Thanks, yes i was not switching to the virtualenv . it will be better if those steps are mentioned in the beginning of the tutorial. I used source virtualenvwrapper.sh workon django17 and the version is now displaying proper ...