Python下载地址:注意是64位还是32位,我下载的是3.6.5版本64位
https://www.python.org/downloads/windows/
安装完成后配置环境变量
PATH里添加D:\Python\Python36和D:\Python\Python36\Scripts
打开 cmd 检查一下是否安装成功
安装pip
python -m pip install -U pip
安装django
pip install django
安装flask
pip install flask
安装pymssql-2.1.3-cp36-cp36m-win_amd64.whl
下载pymssql-2.1.3-cp36-cp36m-win_amd64.whl,放入D:\Python\Python36\Scripts
cmd cd D:\Python\Python36\Scripts
pip install pymssql-2.1.3-cp36-cp36m-win_amd64.whl
安装djangorestframework这个框架可以自动生成接口文档. 非常方便
pip install djangorestframework
pip install django-rest-swagger==0.3.5
pip install markdown # Markdown support for the browsable API.
pip install django-filter # Filtering support
Model->Json django-simple-serializer
pip install django-simple-serializer
python 安装包出现困难
python -m pip install aiohttp
diango教程大全
https://code.ziqiangxuetang.com/django/django-qrcode.html
报错ModuleNotFoundError: No module named ‘xxx’
解决办法:File | Settings | Project: wareHouse | Project Interpreter 选择当前Interpreter ,点添加,搜索插件并安装。