首页 > 代码库 > install Django in mac

install Django in mac


install Eclipse & Python(pydev) in mac




install django in mac


$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.1.tar.gz

$ cd virtualenv-1.10.1/

$ sudo python setup.py install

$ virtualenv python2-workspace

$ cd python2-workspace 

$ pip install django  


(if have Traceback (most recent call last)run $ sudo pip install Django --upgrade)


Error




OK


create first django project


$ mkdir django

$ cd django 

$ django-admin.py startproject mysite

$ cd mysite