Django的安装


安装pip

sudo apt-get install python-pip python-dev build-essential

sudo pip install --upgrade pip  &&  sudo pip install --upgrade virtualenv


安装django

sudo pip install Django 


验证是否安装成功

exeucte python and try to get its version

>>> import django

>>> print(django.get_version())


若失败,使用以下命令安装

sudo apt-get install python-django


也可以下载Django的源码

git clone git://github.com/django/django.git django-trunk