1st: start the server with pytho

2017-01-08  本文已影响9人  王癫癫

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/

上一篇 下一篇

猜你喜欢

热点阅读