首页 > 代码库 > django安装篇

django安装篇

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安装篇