1st: start the server with python2.x

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

http://127.0.0.1:8000/

1st: start the server with python2.x_第1张图片

你可能感兴趣的:(1st: start the server with python2.x)