ubuntu安装django

sudo apt-get install python-django -y


#django操作mysql数据库时还需要安装
python-mysqldb驱动,当然mysql安装是必须的前提
sudo apt-get install python-mysqldb