1. 程式人生 > >django安裝篇

django安裝篇

11.2 ora lib images 安裝 final def href 2.0

https://www.djangoproject.com/

環境 Django 1.11 Python 2.7

https://docs.djangoproject.com/en/dev/releases/1.11/

The Django 1.11.x series is the last to support Python 2. The next major release, Django 2.0, will only support Python 3.5+.

1.找本入門的中文書

The Django Book 2.0中文譯本

2.djangoproject

我的環境 Python 2.7.11 | 64-bit | (default, Jun 11 2016, 11:33:47) [MSC v.1500 64 bit (AMD64)]

Django 1.11 is the last version to support Python 2.7. Support for Python 2.7 and Django 1.11 ends in 2020.

安裝Django 1.11

Cmd下運行下述命令,前提是安裝好了pip(我的canopy自己已經安裝好了這個)

pip install Django==1.11.2

技術分享

測試安裝成功

import django
django.VERSION

Out[8]: (1, 11, 2, u‘final‘, 0)

django安裝篇