If you try the following command:
sudo pip install django
you might get some error.
With Python 2.6.6, you can use only 1.4 version of Django.
So you have to use the following command to install:
sudo pip install 'https://www.djangoproject.com/download/1.4.20/tarball/'
You can check if it's working as follows:
$ python
...
>>> import django
>>> print(django.get_version())
1.4.20
>>>
If you want to use greater than 1.4 version,
you should upgrade Python to at least 2.7.
References:
https://docs.djangoproject.com/en/1.8/intro/install/
https://docs.djangoproject.com/en/1.8/faq/install/
https://www.djangoproject.com/download/
No comments:
Post a Comment