Link: how to install Django
sys: macOS Sierra @ 10.12.2
python: 2.7.13
tool: terminal
command: sudo-->(super user), easy_install-->(tool of python), pip(The PyPA recommended tool for installing Python packages.)
steps:
1:open "Terminal"
2:install pip
>sudo easy_install pip
3:install Django
>sudo pip install Django
4:check version
>django-admin.py --version
5:start project
>django-admin startproject projectname
6:run this project on browser
>python manage.py runserver
7: search the default link
网友评论