最近笔者使用了Django框架作为项目model层的数据对象处理。
关于Django的开发环境,需要安装以下内容:
1、安装python
2、安装VCForPython27.msi
3、安装pycharm
4、安装必要的依赖包,依赖包可以直接下载安装,也可以点击 pycharm安装
file-->setting-->Project:xxx-->Project Interpreter
Project Interpreter:C:Python27python.exe
install package:
Django MySQL-python Pygments djangorestframework pip pywin32 setuptools安装完成后,向pycharm中导入对应的Django项目:file-->open file --> 项目
运行调试:点击pycharm 界面右上角对应项目的run按钮